login
|
FAQ
|
about
|
stats
|
search
CPAN::Forum
Tags
New Post
Nmap-Parser
Posted on
2008-11-10 13:48:06-08
by
dossy
in response to
9257
Re: Output format syntax
According to the Nmap::Parser documentation, Nmap::Parser::Host's tcp_ports() method returns a sorted list of ports. See:
http://search.cpan.org/dist/Nmap-Parser/Parser.pm#Nmap::Parser::Host
Replace this line:
print $host->addr,":",$host->tcp_ports('open'),"\n";
with this:
printf("%s:%s\n", $host->addr, $_) for ($host->tcp_ports('open'));
Direct Responses:
Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs.
click here
to check it out.
Recommended web hosting by M5 hosting