Skip to content

Instantly share code, notes, and snippets.

@hackingbutlegal
Created July 11, 2013 04:17
Show Gist options
  • Select an option

  • Save hackingbutlegal/5972498 to your computer and use it in GitHub Desktop.

Select an option

Save hackingbutlegal/5972498 to your computer and use it in GitHub Desktop.
File full of ports; call nmap for each port
for i in `cat file.txt` ; do nmap host -p$i -oA scan-$i; done
@hackingbutlegal
Copy link
Copy Markdown
Author

Get fancy and parallelize

cat file.text | parallel -j 8 nmap host -p $1 -oA scan-$

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