PHP:同时打开URL以模拟DOS攻击? [英] PHP: Opening URLs concurrently to simulate a DOS attack?

查看:159
本文介绍了PHP:同时打开URL以模拟DOS攻击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为服务器配置了各种反DOS模块(mod_qos,mod_evasive等).我现在想做的是运行一个简单的PHP脚本,该脚本多次调用我站点上的URL,以达到站点上的各种限制.理想情况下,可以以某种方式同时打开各种URL的脚本将是理想的.

I have configured my server with various anti-DOS modules (mod_qos, mod_evasive etc). What I want to do now is run a simple PHP scrip that calls URLs on my site multiple times, in order to reach the various limits on the site. Ideally a script that can somehow open various URLs concurrently would be ideal.

这可能吗?如果没有,那么模拟来自一个IP的多个请求的最简单方法是什么?

Is this possible? And if not, what is the easiest way to simulate multiple requests from one IP?

我希望可以在Windows 7中使用该工具?

I would prefer a tool that works in Windows 7?

更新:请记住,我希望能够查看我的服务器是否实际上阻止了某些请求.我只和AB玩了一段时间,但是到目前为止,它还没有显示出请求被阻止了吗?

Update: Remember, i want to be able to see if my server is actually blocking some of the requests. I've only played with AB for a little bit, but so far it hasn't shown me that requests were blocked?

推荐答案

这在Windows下非常有用: OpenLoad

This was very useful under Windows: OpenLoad

我使用以下命令执行了

openload.exe http://www.mysite.com 250

然后我可以轻松地在Apache错误日志中看到结果:

And then I could easily see the result in my Apache Error Log:

tail -f /usr/local/apache/logs/error_log

我可以看到:

[Mon Apr 08 12:09:05 2013] [error] mod_qos(031): access denied, QS_SrvMaxConnPerIP rule: max=50, concurrent connections=59, c=XX.XXX.XX.XXX
[Mon Apr 08 12:09:05 2013] [error] mod_qos(031): access denied, QS_SrvMaxConnPerIP rule: max=50, concurrent connections=60, c=XX.XXX.XX.XXX
etc

这篇关于PHP:同时打开URL以模拟DOS攻击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆