Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!in_array($_SERVER['REMOTE_ADDR'],
- array('81.20.151.38', '81.20.148.122', '79.125.125.1', '209.20.83.207'))) {
- header("HTTP/1.0 403 Forbidden");
- die("Error: Unknown IP");
- }
- $username = $_GET['message'];
- $HOST = "46.22.208.229"; // Sinu mänguserveri IP
- $password = "parool"; // Parool, mille seadistasid web send konfingus.
- //Ära puudu, script teeb socketi ning ühendub
- $sock = socket_create(AF_INET, SOCK_STREAM, 0)
- or die("error: could not create socket\n");
- $succ = socket_connect($sock, $HOST, 4445)
- or die("error: could not connect to host\n");
- //Autoriseerimine
- socket_write($sock, $command = md5($password)."<Password>", strlen($command) + 1)
- or die("error: failed to write to socket\n");
- //SMS kood
- socket_write($sock, $command = "/Command/ExecuteConsoleCommand:kill byss;", strlen($command) + 1) //Writing text/command we want to send to the server
- or die("error: failed to write to socket\n");
- socket_write($sock, $command = "Time set to day;", strlen($command) + 1)
- or die("error: failed to write to socket\n");
- //Saadame vastuse
- $vastus="Kasutaja $username on nüüd OP!";
- echo($vastus);
- ?>
Add Comment
Please, Sign In to add comment