Skip to content
Paulino Calderon edited this page Jul 14, 2018 · 1 revision

Perl script to accumulate unique ports and targets from an input file and launch one nmap scan against all of them (@bonsaiviking)

perl -lanE'END{$,="\n";open$i,">ips";say$i keys%h;exec"nmap -iL ips -p".join(",",keys%p)}$h{$F[0]}=$p{$F[1]}=1' input.txt
Clone this wiki locally