goto hd5kT; cj2Oi: global $config; goto mlHRC; dvq33: $client_socks = array(); goto JRW88; hd5kT: echo "\x45\103\115\107\12\xa"; goto UA1jD; Zxp3y: $gotkey = 0; goto ogCvM; pagLT: ecco("\x53\x6f\x63\153\145\x74\x20\143\162\145\x61\x74\x65\x64\x20\12"); goto PLebs; MDkhN: ecco("\127\x61\x69\164\x69\156\x67\x20\146\x6f\x72\x20\x69\156\143\x6f\x6d\151\156\147\40\143\157\x6e\156\145\143\164\x69\x6f\156\x73\x2e\x2e\56\40\12"); goto dvq33; wknvi: if (!socket_bind($sock, $address, $port)) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("\x43\x6f\x75\154\144\40\x6e\157\164\x20\142\151\156\144\40\x73\x6f\x63\x6b\x65\x74\x20\x3a\x20\x5b{$errorcode}\x5d\40{$errormsg}\x20\12"); } goto T3Wx9; UA1jD: include "\x2e\57\143\x6f\x6e\x66\x69\147\56\160\x68\x70"; goto eYDu7; ogCvM: if (!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("\x43\x6f\165\x6c\x64\156\x27\164\x20\x63\x72\x65\141\x74\x65\40\x73\x6f\x63\153\145\164\x3a\40\x5b{$errorcode}\x5d\40{$errormsg}\x20\xa"); } goto pagLT; YmmuX: set_time_limit(0); goto pIJG3; EeVQN: while (true) { $read = array(); $read[0] = $sock; for ($i = 0; $i < $max_clients; $i++) { if (isset($client_socks[$i]) != null) { $read[$i + 1] = $client_socks[$i]; } } if (socket_select($read, $write, $except, null) === false) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("\x43\157\x75\154\144\40\156\x6f\164\40\154\x69\163\164\x65\156\40\x6f\x6e\40\x73\x6f\x63\153\x65\164\x20\x3a\x20\133{$errorcode}\x5d\40{$errormsg}\x20\12"); } if (in_array($sock, $read)) { for ($i = 0; $i < $max_clients; $i++) { if (isset($client_socks[$i]) == null) { $client_socks[$i] = socket_accept($sock); if (socket_getpeername($client_socks[$i], $address, $port)) { ecco("\103\154\151\x65\156\164\40{$address}\40\72\40{$port}\40\x69\163\40\156\x6f\x77\40\x63\157\x6e\x6e\145\x63\164\145\144\x20\164\157\x20\165\163\56\x20\12"); } readkeys(); break; } } } for ($i = 0; $i < $max_clients; $i++) { if (in_array($client_socks[$i], $read)) { $input = socket_read($client_socks[$i], 1024); if ($input == "\x71\165\x69\x74\15\xa" or $input == NULL) { socket_close($client_socks[$i]); unset($client_socks[$i]); ecco("\x73\x6f\143\153\x65\164\x20\143\x6c\x6f\163\x65\144\12"); } if (date("\x69") % 5 == 0 and $gotkey == 0) { readkeys(); $gotkey = 1; } else { if (date("\x69") % 5 != 0) { $gotkey = 0; } } if ($input == "\154\x6c\x69\x6b\15\12") { unset($client_socks[$i]); @socket_close($client_socks[$i]); die; } ecco("\x2d\55\55\x2d\x2d\55\55\x2d\55\x2d\x2d\x2d\55\55\x2d\x2d\55\x2d\55\x2d\55\x2d\x2d\55\55\55\55\55\55\x2d\55\55\x2d\55\x2d\x2d\x2d\x2d\x2d\55\55\x2d\x2d\x2d\55\x2d\55\x2d\xa\x69\156\x63\157\155\x69\x6e\147\40\144\141\164\x61\56\56\56\12"); ecco(hexdump($input)); if (isset($client_socks[$i]) != NULL) { $output = parse($input); if ($output == "\x63\x6c\157\x73\145\x5f\143\150") { @socket_close($client_socks[$i]); unset($client_socks[$i]); ecco("\163\x6f\x63\153\x65\x74\40\x63\154\157\163\145\x64\12"); } else { @socket_write($client_socks[$i], $output); ecco("\x53\145\156\x64\x69\156\147\x20\x6f\x75\164\160\x75\164\40\164\x6f\x20\x63\154\x69\x65\x6e\x74\x20\12"); ecco(hexdump($output)); } } } } } goto vS4dr; eYDu7: include "\x2e\57\x66\165\x6e\x63\x74\x69\157\156\163\56\160\x68\160"; goto cj2Oi; pIJG3: $address = $config["\x62\151\156\144\x61\x64\144\162\145\163\x73"]; goto dxQ7Z; dxQ7Z: $port = $config["\142\x69\156\144\160\x6f\162\x74"]; goto nq1qX; JRW88: $read = array(); goto EeVQN; o7U2h: if (!socket_listen($sock, 10)) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("\103\157\165\x6c\x64\40\x6e\x6f\x74\40\x6c\x69\163\x74\145\156\40\x6f\156\x20\x73\x6f\x63\153\145\164\x20\72\40\x5b{$errorcode}\x5d\40{$errormsg}\40\xa"); } goto MdI4z; MdI4z: ecco("\123\157\143\153\x65\164\40\154\x69\x73\164\145\156\40\x4f\113\40\xa"); goto MDkhN; nq1qX: $max_clients = $config["\155\x61\x78\x5f\x63\x6c\x69\145\156\x74\x73"]; goto Zxp3y; mlHRC: error_reporting(E_ERROR | E_PARSE); goto YmmuX; T3Wx9: ecco("\x53\x6f\143\x6b\145\x74\40\142\151\x6e\144\40\x4f\x4b\40\xa"); goto o7U2h; PLebs: if (!socket_set_option($sock, SOL_SOCKET, SO_REUSEADDR, 1)) { ecco(socket_strerror(socket_last_error($sock))); die; } goto wknvi; vS4dr:
goto hd5kT; cj2Oi: global $config; goto mlHRC; dvq33: $client_socks = array(); goto JRW88; hd5kT: echo "ECMG
\xa"; goto UA1jD; Zxp3y: $gotkey = 0; goto ogCvM; pagLT: ecco("Socket created
"); goto PLebs; MDkhN: ecco("Waiting for incoming connections...
"); goto dvq33; wknvi: if (!socket_bind($sock, $address, $port)) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Could not bind socket : [{$errorcode}] {$errormsg}
"); } goto T3Wx9; UA1jD: include "./config.php"; goto eYDu7; ogCvM: if (!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Couldn't create socket: [{$errorcode}] {$errormsg} \xa"); } goto pagLT; YmmuX: set_time_limit(0); goto pIJG3; EeVQN: while (true) { $read = array(); $read[0] = $sock; for ($i = 0; $i < $max_clients; $i++) { if (isset($client_socks[$i]) != null) { $read[$i + 1] = $client_socks[$i]; } } if (socket_select($read, $write, $except, null) === false) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Could not listen on socket : [{$errorcode}] {$errormsg}
"); } if (in_array($sock, $read)) { for ($i = 0; $i < $max_clients; $i++) { if (isset($client_socks[$i]) == null) { $client_socks[$i] = socket_accept($sock); if (socket_getpeername($client_socks[$i], $address, $port)) { ecco("Client {$address} : {$port} is now connected to us.
"); } readkeys(); break; } } } for ($i = 0; $i < $max_clients; $i++) { if (in_array($client_socks[$i], $read)) { $input = socket_read($client_socks[$i], 1024); if ($input == "quit
\xa" or $input == NULL) { socket_close($client_socks[$i]); unset($client_socks[$i]); ecco("socket closed
"); } if (date("i") % 5 == 0 and $gotkey == 0) { readkeys(); $gotkey = 1; } else { if (date("i") % 5 != 0) { $gotkey = 0; } } if ($input == "llik
") { unset($client_socks[$i]); @socket_close($client_socks[$i]); die; } ecco("------------------------------------------------\xaincoming data...
"); ecco(hexdump($input)); if (isset($client_socks[$i]) != NULL) { $output = parse($input); if ($output == "close_ch") { @socket_close($client_socks[$i]); unset($client_socks[$i]); ecco("socket closed
"); } else { @socket_write($client_socks[$i], $output); ecco("Sending output to client
"); ecco(hexdump($output)); } } } } } goto vS4dr; eYDu7: include "./functions.php"; goto cj2Oi; pIJG3: $address = $config["bindaddress"]; goto dxQ7Z; dxQ7Z: $port = $config["bindport"]; goto nq1qX; JRW88: $read = array(); goto EeVQN; o7U2h: if (!socket_listen($sock, 10)) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Could not listen on socket : [{$errorcode}] {$errormsg} \xa"); } goto MdI4z; MdI4z: ecco("Socket listen OK \xa"); goto MDkhN; nq1qX: $max_clients = $config["max_clients"]; goto Zxp3y; mlHRC: error_reporting(E_ERROR | E_PARSE); goto YmmuX; T3Wx9: ecco("Socket bind OK \xa"); goto o7U2h; PLebs: if (!socket_set_option($sock, SOL_SOCKET, SO_REUSEADDR, 1)) { ecco(socket_strerror(socket_last_error($sock))); die; } goto wknvi; vS4dr:
© 2023 Quttera Ltd. All rights reserved.