Skip to content

Instantly share code, notes, and snippets.

@agnivesh
Created July 28, 2018 06:40
Show Gist options
  • Select an option

  • Save agnivesh/6aeb5b4a9940c14d3c91374aa57ccebd to your computer and use it in GitHub Desktop.

Select an option

Save agnivesh/6aeb5b4a9940c14d3c91374aa57ccebd to your computer and use it in GitHub Desktop.
Nmap scanning strategy

Discovery:

nmap -sn -T4 -oA Discovery 192.168.1.0/24

Generate Live Hosts List:

grep "Status: Up" Discovery.gnmap | cut -f 2 -d ' ' > LiveHosts.txt

Common Ports:

nmap -sS -T4 -Pn -oA TopTCP -iL LiveHosts.txt nmap -sU -T4 -Pn -oA TopUDP -iL LiveHosts.txt

Full Ports:

nmap -sS -T4 -Pn -p 0-65535 -oA FullTCP -iL LiveHosts.txt nmap -sU -T4 -Pn -p 0-65535 -oA FullUDP -iL LiveHosts.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment