Simple Port Scanner

Topic Sul Perl.

Moderator: dree

Simple Port Scanner

Postby BlaCk-aRRow on Sat Jul 14, 2007 12:37 am

Code: Select all
#!/usr/bin/perl
#BlaCk-aRRow
#Inject-IT.org

use IO::Socket


print q{
---------------------------------------------------------------

#Simple PortScanner - 1ncr3as3 Th3 P0rt 1f u W4nt#

---------------------------------------------------------------

# BlaCk-aRRow #

---------------------------------------------------------------
};

   print "Inserisci Ip: \n";
   $ip=<STDIN>;chomp($ip);

   @myports = ("21","22","23","25","59","80","113","135","445","1025","5000",
                               "5900","6660","6661","6662","6663","6665","6666","6667","6668",
                                "6669","7000","8080","8018"
                               );

   for my $porta (@myports)

      {
                print "Sto Scansionando $porta\n";   
        
      my $sock=IO::Socket::INET->new(
         PeerAddr => $ip,
         PeerPort => $porta,
         Proto => 'tcp',
         timeout => 4);
   

      if($sock) {
          push(@founds, $porta);
      close($sock);

      
      }   
}

print " Ho Trovato Le Porte: @founds\n";


Greetz dree,r0y,xero..
BlaCk-aRRow
Newbies
 
Posts: 24
Joined: Sat May 12, 2007 2:49 pm

Simple Port Scanner

Sponsor

Sponsor


Postby xero on Wed Aug 08, 2007 12:50 am

alla fine hai fatto un lavoro carino
Image
Stallman nostro, che sei in America, sia santificato il tuo pc, venga la tua licenza, sia fatta la tua volontà così in C++ come in Python, dacci oggi il nostro codice quotidiano, rimetti a noi i nostri pacchetti come noi rimettiamo alle nostre dipendenze e non ci indurre a Vista ma liberaci da Microsoft, Amen
xero
Newbies
 
Posts: 15
Joined: Fri Jan 26, 2007 1:48 pm

Postby BlaCk-aRRow on Thu Sep 13, 2007 8:32 pm

Grazie :D
BlaCk-aRRow
Newbies
 
Posts: 24
Joined: Sat May 12, 2007 2:49 pm


Return to Perl

Who is online

Users browsing this forum: No registered users and 1 guest