879
社区成员
发帖
与我相关
我的任务
分享
<?php
set_time_limit(300);
error_reporting(0);
$line = file_get_contents("php://input");
$line = substr($line, 1);
$hostport = substr($line,0, 61);
$bodyData = substr($line, 61);
$line = "";
$host = substr($hostport, 0, 50);
$port = substr($hostport, 50, 10);
$issecure = substr($hostport, 60, 1);
$fsok = fsockopen(trim($host), intval(trim($port)));
if(FALSE == $fsok) {
echo "error";
return;
}
fwrite($fsok, $bodyData );
$port ="";
$host ="";
$hostport= "";
$bodyData="";
while ($line = fread($fsok, 25000)) {
echo $line;
}
fclose($fsok);
?>