Testing DOS Attack In Python ?

does any one have simple code for testing  DOS for python ?
Abdillahi AbdulkadirAsked:
Who is Participating?
 
Ganesh GuruduSenior ConsultantCommented:
You can find the sample code in below URLs,
However. I am not sure this code working condition or not. You many need to test this code.

https://gist.github.com/tin-tnguyen/1312196
https://gist.github.com/rambabusaravanan/4225ab77d742eb0991c8e30aec4b7317
https://codepad.co/snippet/xNVMUpCq
0
 
ThierrySysAdminCommented:
I think the majority of people here are trying to solve problems, not create them for others.....
1
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
https://github.com/gkbrk/slowloris looks to be a Python port of Slowloris.

Keep in mind what Thierry said, about solving rather than creating problems.

I attack my own machines with the PERL version of Slowloris to test my machine countermeasures.

Keep in mind, you should only attack your own sites, locally from your own machine. Any other use of any attack tool will create problems.

1) It's a crime, in many jurisdictions/countries, to attack other people's sites without their permission.

2) If you attack one of your sites from a different machine (than where your site lives), packets flow over open networks.

This may cause your attacking IP + all sites on your IP to be blacklisted, globally.

This may cause the ISP of your attacking IP to suspend your account + all your machines will stop working.

3) Guideline: Only run attack tools locally, on the machine where your target site lives, so packets only flow locally.
6
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Accepted two similar answers.

Poster has stopped posting.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.