Last active
August 8, 2017 13:19
-
-
Save denise-sanders/4e2f9e149fdf393482e1e174077b0c6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For looking at vulnerabilities: | |
nmap | |
nmap -sS 1.2.3.4 (more options: https://nmap.org/book/man-port-scanning-techniques.html) | |
nmap -p <number/range> -Pn <ip address> | |
^ will only scan a particular range or specific port number | |
Fun stuff: | |
mount -o resvport -o nolock -o rw -t nfs 1.2.3.4:/ ~/nfs (osx needs the resvport, because mount does not use a privileged port by default)(Also it is really dumb to have root directories mountable) | |
umount nfs (if you have a directory named nfs, its getting unmounted) | |
showmount -e 1.2.3.4 | |
Find (is a beautiful, beatiful command) | |
find / 2>/dev/null -type f -size numberofbytesc -user nameofuser (the 2 is the stderr) | |
sort is cool. uniq -c is also cool (count the number of times lines appear) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment