Adblock breaks this site

[PERL] Basic Port Scanner.

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

  1. SaGiKz

    SaGiKz Guest

    Referrals:
    0
    [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++;
    }
    
     
  2. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    [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 >


 
 
Adblock breaks this site