daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $socket = stream_socket_client('tcp://127.0.0.1:4444');
  2. if ($socket) {
  3.     $sent = stream_socket_sendto($socket, 'login password');
  4.     if ($sent > 0) {
  5.         $server_response = fread($socket, 4096);
  6.         echo $server_response;
  7.     }
  8. } else {
  9.     echo 'Unable to connect to server';
  10. }
  11. stream_socket_shutdown($socket, STREAM_SHUT_RDWR);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top