[PERL] Basic Port Scanner.

Discussion in 'Web Programming' started by SaGiKz, Nov 20, 2007.

[PERL] Basic Port Scanner.
  1. Unread #1 - Nov 20, 2007 at 2:57 PM
  2. SaGiKz
    Referrals:
    0

    SaGiKz Guest

    [PERL] Basic Port Scanner.

    Here is a quick port scanner i created.. VERY basic.
    Code:
    #!/usr/bin/perl
    #Code Developed by Sagikz 
    use IO::Socket;
    print "Target: ";
    chomp (my $server = <STDIN>);
    $op = 0;
    while(1)
    {
    $ports = new IO::Socket::INET (
    PeerAddr => $server,
    PeerPort => $op,
    Proto => "tcp");
    if($ports)
    {
    print "$op is open...\n";
    }
    $op++;
    }
    
     
  3. Unread #2 - Nov 20, 2007 at 8:36 PM
  4. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    [PERL] Basic Port Scanner.

    So... This just starts from port 1... and goes up and up?

    I guess it is basic. I don't really like perl. When it gets complicated, it's way too hard to read.
     
< Delphi RS Client help | html email forwarding >

Users viewing this thread
1 guest


 
 
Adblock breaks this site