CrashBandicot

Mass Ping

Jul 4th, 2014
1,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.08 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Gr33tz to Boualem,M-A labz , All Gantengers-crews.org
  3. #Soon V2 Perfect *.*
  4. use HTTP::Request;
  5. use LWP::UserAgent;
  6. use Term::ANSIColor;
  7. use Win32::Console::ANSI;
  8. if($^O =~ /Win/){
  9.  
  10.    system("cls");
  11.   system('title Mass Ping');
  12.  
  13. }else{
  14.  
  15.    system("clear");
  16. }
  17. print color("bold red"), "\n\t\t\tMass Ping TOols\n\n\n";
  18. print color 'reset';
  19. print color("green"),  "List Of Website .txt (without http://):";
  20. print color 'reset';
  21. $host = <>;
  22. chomp($host);
  23.  open (file, "<$host") || die "[-] Can't open the List of site file !";
  24. my @file = <file>;
  25. close file;
  26. print color("green"), "\nNumber Of Websites to Scan : ";
  27. print color("blue"), "".scalar(@file)."\n";
  28. print color 'reset';
  29. foreach $hosts(@file) {  
  30. $zeb = "http://baremetal.com/cgi-bin/dnsip?target=".$hosts."";
  31. $fuck = LWP::UserAgent->new();
  32. $klawii = $fuck->request(HTTP::Request->new(GET=>$zeb));
  33. $ipp = $klawii->content;
  34. if($ipp =~ m/<b>(.*?)<\/b><\/font>/) {
  35.  
  36.   $print = "\n [+] $hosts >> $1 \n";
  37.   print "$print";
  38.   sleep(1);
  39.   open (a, ">>ping.txt");
  40.   print a  "$print";
  41.   close a;
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment