• Stars
    star
    2,410
  • Rank 19,090 (Top 0.4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 9 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Low bandwidth DoS tool. Slowloris rewrite in Python.

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

@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 is a fork from SocksiPy 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.

More Repositories

1

python-jvm-interpreter

Java Virtual Machine implementation in Python
Python
277
star
2

rust-ipfs-api

Rust crate for interfacing with the IPFS API
Rust
119
star
3

hackchat

An event-driven Python library for hack.chat
Python
30
star
4

apt-encoder

Encode images as APT audio signals
C++
27
star
5

JustIRC

A simple library to write simple IRC bots.
Python
27
star
6

WebRadio

An HTML5 radio streaming webapp.
JavaScript
20
star
7

SirLogsalot

An IRC bot written in C
C
18
star
8

html5hacker

Hacker typer clone in HTML5
HTML
15
star
9

rust-cedict

A Rust parser for the CC-CEDICT Chinese-English Dictionary
Rust
14
star
10

minelib

A small API to interface with Minecraft servers.
Python
14
star
11

scripts

A collection of random scripts from my computer
Python
12
star
12

passwordstrength

A Python module that can be used to check the strength score of a password.
Python
9
star
13

rust-gophermap

Parse and generate Gopher responses
Rust
8
star
14

lobsters-py

Python client library for lobste.rs
Python
7
star
15

CurrencyConverter

Simple currency calculator in C.
C
7
star
16

RustOre-Classic

A Minecraft classic server written in Rust.
Rust
6
star
17

kernel

Cardinal kernel and operating system
C++
6
star
18

rust-renderstl

Small 3D Renderer - Renders STL files into images
Rust
5
star
19

cs2d

Interfacing with CS2D servers.
C
5
star
20

rust-smtpd

A simple SMTP server library inspired by smtpd.py
Rust
4
star
21

rust-hackchat

A hack.chat API in Rust.
Rust
4
star
22

radioreddit-cli

A Python script for listening to RadioReddit from the command line
Python
4
star
23

AsteroidRacer

A tiny example game written in Python. It uses Pyglet.
Python
4
star
24

MD5_Cracker

A Python MD5 Cracker that uses online services for cracking.
Python
4
star
25

rulid

Build system for Rust
Python
4
star
26

rust-urbandict

UrbanDictionary API client in Rust.
Rust
3
star
27

rust-reddit_api

Reddit API wrapper for Rust
Rust
3
star
28

AsteroidsCpp

Asteroid Dodging Game in C++.
C++
3
star
29

Blog

A blogging system I made with Bootstrap, Python and Bottle.py.
JavaScript
3
star
30

carddav-rs

CardDAV client library for Rust
Rust
3
star
31

whois.py

The whois utility implemented in Python.
Python
3
star
32

jsbuild

Javascript build system and package manager
Python
3
star
33

RandomDilbert

A Dilbert client written in Python and GTK.
Python
3
star
34

dotfiles

Emacs Lisp
2
star
35

browser-harden

JavaScript
2
star
36

xmppbot

XMPP Personal Assistant bot
Python
2
star
37

smolmesh2

Packet routing over arbitrary peerings
Rust
2
star
38

GameEngine

A toy game engine written in C++
C++
1
star
39

smolcanvas

smolcanvas is a 2D canvas graphics library.
JavaScript
1
star
40

minetest-py

Python client for the minetest protocol
Python
1
star
41

bunnylog-py

Parse BunnyCDN log files with Python
Python
1
star
42

carddav-cgi

A CardDAV server written in Python
Python
1
star
43

Golf

A static website generator written in Python.
Python
1
star
44

network01

Python
1
star
45

GetProjects

Clone all your GitHub repos in a single command.
Python
1
star
46

WatchCodeBot

An IRC bot for #WatchPeopleCode
Python
1
star
47

unbird

Utility to turn Bird-style Literate Programming documents into code
C
1
star
48

website

gkbrk.com
JavaScript
1
star
49

paytak

Minimal DAG execution library for Python
Python
1
star
50

testsimple-py

Python testing framework inspired by Perl's Test::Simple
Python
1
star
51

http-server-test

C
1
star
52

testsimple-js

Unit test framework inspired by Test::Simple
JavaScript
1
star
53

TetsuWeb

C# web microframework
C#
1
star