Created
July 11, 2013 04:17
-
-
Save hackingbutlegal/5972498 to your computer and use it in GitHub Desktop.
File full of ports; call nmap for each port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in `cat file.txt` ; do nmap host -p$i -oA scan-$i; done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get fancy and parallelize
cat file.text | parallel -j 8 nmap host -p$1 -oA scan-$