http://www.perlmonks.org?node_id=1183409

hegaa has asked for the wisdom of the Perl Monks concerning the following question:

how I can make a port scanner code using the Nmap command? can you give me a link? or can you give me a code?

Replies are listed 'Best First'.
Re: port scanner using nmap
by stevieb (Canon) on Mar 02, 2017 at 13:58 UTC

    No need to shell out... there's an API for that!

      I haven't tried that one, but I've helped work on an older one: Nmap::Parser, which also can run a scan directly with the parsescan method.


      print map{substr'hark, suPerJacent other l',$_,1}(11,7,6,16,5,1,15,18..23,8..10,24,17,0,12,13,3,14,2,4);