Skip to content

Instantly share code, notes, and snippets.

@denise-sanders
Last active August 8, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denise-sanders/4e2f9e149fdf393482e1e174077b0c6c to your computer and use it in GitHub Desktop.
Save denise-sanders/4e2f9e149fdf393482e1e174077b0c6c to your computer and use it in GitHub Desktop.
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