Skip to content

Instantly share code, notes, and snippets.

@robert-moses
Last active January 25, 2019 18:57
Show Gist options
  • Save robert-moses/6d6de911a75dcfb0821de3f107f59ad7 to your computer and use it in GitHub Desktop.
Save robert-moses/6d6de911a75dcfb0821de3f107f59ad7 to your computer and use it in GitHub Desktop.
nmap recon scanning
# scan and get all output file formats
nmap –sT –oA Network_Topology –vv 192.168.0.0/24
#
# pull the "alive" host IPs from the output
grep open Network_Topology.gnmap | cut -d" " -f2 > Device_List.txt
#
# rescan, to ensure nothing was missed with the -A option
nmap -A --excludefile Device_List.txt 192.168.0.0/24
#
# add additional hosts to list file, manually
echo "192.168.0.100" >> Device_List.txt
#
# rescan
nmap -A -Pn -iL Device_List.txt --reason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment