Guest User

Untitled

a guest
Sep 22nd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2.  
  3. if(!in_array($_SERVER['REMOTE_ADDR'],
  4. array('81.20.151.38', '81.20.148.122', '79.125.125.1', '209.20.83.207'))) {
  5. header("HTTP/1.0 403 Forbidden");
  6. die("Error: Unknown IP");
  7. }
  8.  
  9. $username = $_GET['message'];
  10. $HOST = "46.22.208.229"; // Sinu mänguserveri IP
  11. $password = "parool"; // Parool, mille seadistasid web send konfingus.
  12.  
  13. //Ära puudu, script teeb socketi ning ühendub
  14. $sock = socket_create(AF_INET, SOCK_STREAM, 0)
  15. or die("error: could not create socket\n");
  16. $succ = socket_connect($sock, $HOST, 4445)
  17. or die("error: could not connect to host\n");
  18.  
  19. //Autoriseerimine
  20. socket_write($sock, $command = md5($password)."<Password>", strlen($command) + 1)
  21. or die("error: failed to write to socket\n");
  22.  
  23. //SMS kood
  24. socket_write($sock, $command = "/Command/ExecuteConsoleCommand:kill byss;", strlen($command) + 1) //Writing text/command we want to send to the server
  25. or die("error: failed to write to socket\n");
  26. socket_write($sock, $command = "Time set to day;", strlen($command) + 1)
  27. or die("error: failed to write to socket\n");
  28.  
  29. //Saadame vastuse
  30. $vastus="Kasutaja $username on nüüd OP!";
  31. echo($vastus);
  32. ?>
Add Comment
Please, Sign In to add comment