How do I build a simple DDoS attack using Ruby?
I'm building an arsenal of dif开发者_JAVA技巧ferent things to attack my site with, to see how I can protect it. I was curious if there were gems available for this.
If you want to simulate a DDos attack you may want to spin up a bunch of Amazon EC2 instances and run ApacheBench on them. That should do it :)
Disclaimer
I'm not sure if the Apache terms say anything about using EC2 in this way. Please make sure you don't get your account banned for DDOSing your own site!
you can use something like fail2ban to avoid too much request from IP
精彩评论