Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gkbrk/slowloris
Low bandwidth DoS tool. Slowloris rewrite in Python.
https://github.com/gkbrk/slowloris
dos dos-attack penetration-testing pentesting slowloris
Last synced: 30 days ago
JSON representation
Low bandwidth DoS tool. Slowloris rewrite in Python.
- Host: GitHub
- URL: https://github.com/gkbrk/slowloris
- Owner: gkbrk
- License: mit
- Created: 2015-04-26T10:00:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-14T01:40:34.000Z (9 months ago)
- Last Synced: 2024-05-22T16:21:04.344Z (6 months ago)
- Topics: dos, dos-attack, penetration-testing, pentesting, slowloris
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 2,349
- Watchers: 74
- Forks: 672
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-termux-hacking - slowloris - Low bandwidth DoS tool. Slowloris rewrite in Python..[![->](https://img.shields.io/github/stars/gkbrk/slowloris.svg?style=social&label=Star&maxAge=2592000)](https://github.com/gkbrk/slowloris/stargazers/) (Uncategorized / Uncategorized)
README
# slowloris.py - Simple slowloris in Python
## What is Slowloris?
Slowloris is basically an HTTP Denial of Service attack that affects threaded servers. It works like this:1. We start making lots of HTTP requests.
2. We send headers periodically (every ~15 seconds) to keep the connections open.
3. We never close the connection unless the server does so. If the server closes a connection, we create a new one keep doing the same thing.This exhausts the servers thread pool and the server can't reply to other people.
## Citation
If you found this work useful, please cite it as
```bibtex
@article{gkbrkslowloris,
title = "Slowloris",
author = "Gokberk Yaltirakli",
journal = "github.com",
year = "2015",
url = "https://github.com/gkbrk/slowloris"
}
```## How to install and run?
You can clone the git repo or install using **pip**. Here's how you run it.
* `sudo pip3 install slowloris`
* `slowloris example.com`That's all it takes to install and run slowloris.py.
If you want to clone using git instead of pip, here's how you do it.
* `git clone https://github.com/gkbrk/slowloris.git`
* `cd slowloris`
* `python3 slowloris.py example.com`### SOCKS5 proxy support
However, if you plan on using the `-x` option in order to use a SOCKS5 proxy for connecting instead of a direct connection over your IP address, you will need to install the `PySocks` library (or any other implementation of the `socks` library) as well. [`PySocks`](https://github.com/Anorov/PySocks) is a fork from [`SocksiPy`](http://socksipy.sourceforge.net/) by GitHub user @Anorov and can easily be installed by adding `PySocks` to the `pip` command above or running it again like so:
* `sudo pip3 install PySocks`
You can then use the `-x` option to activate SOCKS5 support and the `--proxy-host` and `--proxy-port` option to specify the SOCKS5 proxy host and its port, if they are different from the standard `127.0.0.1:8080`.
## Configuration options
It is possible to modify the behaviour of slowloris with command-line
arguments. In order to get an up-to-date help document, just run
`slowloris -h`.* -p, --port
* * Port of webserver, usually 80
* -s, --sockets
* * Number of sockets to use in the test
* -v, --verbose
* * Increases logging (output on terminal)
* -ua, --randuseragents
* * Randomizes user-agents with each request
* -x, --useproxy
* * Use a SOCKS5 proxy for connecting
* --https
* * Use HTTPS for the requests
* --sleeptime
* * Time to sleep between each header sent## License
The code is licensed under the MIT License.