Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

port scanner using nmap

by hegaa (Initiate)
on Mar 02, 2017 at 13:56 UTC ( #1183409=perlquestion: print w/replies, xml ) Need Help??

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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1183409]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-10-28 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (260 votes). Check out past polls.

    Notices?