Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Simple Port Scanner Prog. In Perl

by czarfred (Beadle)
on May 03, 2002 at 23:28 UTC ( [id://163941]=perlquestion: print w/replies, xml ) Need Help??

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

Hullo, For one of my classes, I need to do a simple port scanner in perl (for security only). Can someone point me in the right direction in regards to what modules I should use?? A tutorial on socket programming in perl would be nice too. BTW, I searched the site to no avail. Thanks for all of your help.

Replies are listed 'Best First'.
Re: Simple Port Scanner Prog. In Perl
by eduardo (Curate) on May 03, 2002 at 23:48 UTC
    Well, you looked on your own, so I feel you should be helped. :) Besides, that was my first foray into perl network programming as well. This seems like a dandy introduction to sockets. In the first few paragraphs it already gives you enough to write your own port scanner. Enjoy, and if we hear that you are doing evil with it... unspecified ominous mumbling :)

    also, check out the IO::Socket man page!

    UPDATE: more resources...
Re: Simple Port Scanner Prog. In Perl
by tachyon (Chancellor) on May 04, 2002 at 07:19 UTC

    To R&D (Rip off and Duplicate) someone else's hard work have a look at pscan which is a basic perl port scaner. You can Google to your hearts content. But beware, you may be drawn into a dingy and dangerous netherworld where the forces of good/evil strive to upset the delicate balance of M$ omnipotence.

    You are sitting in a darkened room in a diet Coke induced euphoric haze. Before you sits a 19" TFT screen containing a list of open ports from your latest scan. Your fingers dance across the keyboard as a light sweat coats your brow. The anticipation is overwhelming......

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-18 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found