Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <?php
- $host = "192.168.0.12";
- $port = 1337;
- $fp = fsockopen ($host, $port);
- if (!$fp) {
- $result = "Error: could not open socket connection";
- } else {
- // write the user string to the socket
- $arr = array('commandType' => 'togglePause');
- $message = json_encode($arr);
- fwrite($fp, '1');
- fwrite($fp, 'H3X!');
- fwrite($fp, strlen($message));
- fwrite($fp, $message);
- $result = "SENT";
- fclose ($fp);
- }
- echo "1";
- echo "H3X!";
- echo strlen($message);
- echo $message;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement