hi, my question is how to make UDP datagrams, I am trying to make software to test my network, and one of the points is to simulate a DDoS attack, so how to make those UDP datagrams in order to make a UDP flood?
I ran 10 instances of this program on my 2.0ghz P4 and it was enough to get system usage to 37% and have the load climbing steadily:
Code:
#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
my $socket=new IO::Socket::INET->new(PeerPort=>1234,
Proto=>'udp',
PeerAddr=>'localhost');
while(1){$socket->send("this is a test")}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.