Skip to content

Instantly share code, notes, and snippets.

@moosh3
Created January 8, 2019 18:35
Show Gist options
  • Save moosh3/884ac60eed2dbd229f2e64fd11ce3f0e to your computer and use it in GitHub Desktop.
Save moosh3/884ac60eed2dbd229f2e64fd11ce3f0e to your computer and use it in GitHub Desktop.
# nmap -p80 -Pn -oG - 10.1.0.1/24
#
Host: 10.1.0.43 () Ports: 80/open/tcp//http///
$1 $2 $3 $4 $5
# nmap -p80 -Pn -oG - 10.1.0.1/24 | awk '/open/{print $2 " " $3}'
10.1.0.1 ()
10.1.0.2 ()
...
-T4 Aggressive timing
-A OS and version detection
-v Verbose
-oG Greppable output
-oA XML file
-F Fast mode (scans fewer ports)
-sO IP Protocol scan
-sV Probe open ports to determine service/version info
-sn Ping scan (host 'up' or 'down') - disable port scan
-sL List scan (host always 'unknown') - simply list targets to scan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment