Skip to content

Instantly share code, notes, and snippets.

@KristofferRisa
Last active January 22, 2016 12:42
Show Gist options
  • Save KristofferRisa/a2d72de9e750120da31b to your computer and use it in GitHub Desktop.
Save KristofferRisa/a2d72de9e750120da31b to your computer and use it in GitHub Desktop.
Some basic nmap commands
nmap -il (input list) [filename]
nmap -a (aggressive) [ip/dns]
nmap --traceroute [ip/dns]
nmap -O (OS info) [ip/dns]
nmap -sV (service version) [ip/dns]
#Note
#nmap scan the 1000 most used ports
nmap -F (fast scan) [ip/dns]
nmap -p (specify ports) 80,808,900-999 or by name http,mysql [ip/dns]
nmap -p- (all ports)
#Save output
nmap -oN (regular textfile) [filepath] [ip/dns]
namp -oX (xml file) [filepath] [ip/dns]
nmap -v (verbose logging in the terminal) [ip/dns]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment