Testing DOS Attack In Python ?

does any one have simple code for testing  DOS for python ?
Abdillahi AbdulkadirAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I think the majority of people here are trying to solve problems, not create them for others.....
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Accepted two similar answers.

Poster has stopped posting.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.