My jumbled response is the comment in the bottom.
Code: Select all
<?php
function serverInfo($server, $port)
{
if ($sock = @stream_socket_client("udp://{$server}:{$port}", $errno, $errstr, 1))
{
fwrite($sock, "\x00\x0c\x00\x00\x00\x04\x00\x00\x00\x00\x00\x16\x00\x00\x00\x35\x00\x00\x00\x00\x00\x00");
$h = fread($sock, 2048);
echo $h;
fclose($sock);
}
}
serverInfo("lightron.org", "4535");
/*
ilhgrtnoo.gr�x0881166iLx0ffffffhg0t8x1861'6x0ffffff sx00e06000Tex8000i00gexa000h0 tx00e0c00oDx00e0e000gexc000f0x00e0a000iex8000g00hex6000t00 9x9999E9sa tSUA
'.0.2-9ts+ytca_plahr_87 8nuxid decitade
x0881166iLx0ffffffhg0t8x1861'6x0ffffff sx00e06000Tex8000i00gexa000h0 tx00e0c00oDx00e0e000gexc000f0x00e0a000iex8000g00hex6000t0x09259ffthpt/:l/githor.nrog���� 0����q�*
*/
?>