Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Created September 5, 2017 17:32
Show Gist options
  • Save YourFriendCaspian/441436bde374a4daa06caa3aadd72cfc to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/441436bde374a4daa06caa3aadd72cfc to your computer and use it in GitHub Desktop.
Create an IP List with Nmap
## Create an IP List with Nmap ##
#You'll find this particularly useful for tools or scripts that operate on new line delimited list of IP addresses.
#You can use this simple Nmap syntax to create a file with a list of appropriate IPs.
nmap -sL -n 192.168.1.1-100,102-254 | grep "report for" | cut -d " " -f 5 > ip_list_192.168.1.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment