Advertisement
Googleinurl

The Black Devils Port Scanner V 1.0 By Asesino04

Sep 2nd, 2013
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.87 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
  3. #0     _                   __           __       __                     1
  4. #1   /' \            __  /'__`\        /\ \__  /'__`\                   0
  5. #0  /\_, \    ___   /\_\/\_\ \ \    ___\ \ ,_\/\ \/\ \  _ ___           1
  6. #1  \/_/\ \ /' _ `\ \/\ \/_/_\_<_  /'___\ \ \/\ \ \ \ \/\`'__\          0
  7. #0     \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/           1
  8. #1      \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\           0
  9. #0       \/_/\/_/\/_/\ \_\ \/___/  \/____/ \/__/ \/___/  \/_/           1
  10. #1                  \ \____/ >> Exploit database separated by exploit   0
  11. #0                   \/___/          type (local, remote, DoS, etc.)    1
  12. #1                                                                      1
  13. #0  [+] Site            : 1337day.com                                   0
  14. #1  [+] Support e-mail  : submit[at]1337day.com                         1
  15. #0                                                                      0
  16. #1               #########################################              1
  17. #0               I'm The Black Devils member from Inj3ct0r Team         1
  18. #1               #########################################              0
  19. #0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1
  20.  
  21.  
  22. # To ExCUTE IT
  23. # PERL FILE.PL 192.168.1.1 1 65000
  24. use warnings;
  25. use strict;
  26. use IO::Socket;
  27.  
  28. system("title The Black Devils");
  29. system("color 1e");
  30. system("cls");
  31. print "\n\n";                
  32. print "    |=======================================================|\n";
  33. print "    |= [!] Name : The Black Devils Port Scanner V 1.0 ||   =|\n";
  34. print "    |= [!] Author  : The Black Devils                      =|\n";
  35. print "    |= [!] Mail: mr.k4rizma(at)gmail(dot)com               =|\n";
  36. print "    |= Perl Dz.pl target port1 port 2                      =|\n";
  37. print "    |=======================================================|\n";
  38. sleep(2);
  39. print "\n";
  40. # Creating ...
  41.  
  42. # User Var
  43.  
  44. my $iptarget =  $ARGV[0] ;
  45. my $x =  $ARGV[1];
  46. my $y =  $ARGV[2];
  47. unless($ARGV[0]){print "|MISSING IP ADRESS\n\n";exit;}
  48.  
  49. print "Interesting ports on $iptarget\n\n";
  50.  
  51. print "PORT // STATE // SERVICE\n";
  52.  
  53. scan($iptarget);
  54.  
  55. print "Scan Finish\n";
  56. exit;
  57.  
  58. # Scanning fonction
  59.  
  60. sub scan
  61. {
  62.     my ($inputtarget) = @_;
  63.  
  64.  
  65.     for( my $iport = $x; $iport != $y; $iport++)  
  66.     {
  67.  
  68.     if ( my $remote = IO::Socket::INET->new(
  69.          Proto => "tcp",
  70.          PeerAddr => $inputtarget,
  71.          PeerPort => $iport,
  72.          Timeout => "5"
  73.          )){
  74.        
  75.         (my $name, my $aliases, my $port_number, my $protocol_name) =
  76. +getservbyport( $iport , "tcp" );
  77.  
  78.         if($name){ $name = $name;}else{$name = "NA";}
  79.  
  80.         print "$iport";print"     open";print"      $name\n";
  81.  
  82.         close($remote);
  83.     }
  84.     }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement