Skip to main content

Slow Loris denial of service attack

Project description

Slow Loris DoS Attack

Python implementation of the Slow Loris denial of service attack

https://gitlab.com/richardnagy/security/sloris

Disclaimer

This tool is intended for demonstrational purposes, so only use against your systems or against ones you have authorization for. I take no responsibility for your actions.

Introduction

Slow Loris is a low-bandwidth denial of service attack, utilizing lots of connections to the same host and keeping them alive while sending minimal data.

When receiving a GET request, the server will wait until an empty line is sent to transmit the requested resource. We don't want any data in return, only to occupy the given connection.

The HTTP standard does not define a limit to the header count, but most frameworks have a limit defined in bytes, after which they will abort the connection. A default NodeJS 14+ setup has an upper limit of 16 kb. Using our current header size (average 15 bytes per header), it will take ~1,000 headers to fill this up.

If we consider an average of 5 seconds as a timeout period, one connection can occupy a channel for about 5000 seconds or around 1 hour 23 minutes. This happens while sending only 16kb of data.

This attack is most effective if:

  • The host has a hard-limited number of possible connections at a time
  • The host has no load balancing or firewalls
  • The host has no DoS protection
  • The attack is carried out by a distributed network of systems

Requirements

  • Python 3.10+

Usage

Start an attack

sloris HOST_IP [OPTIONS]

Help:

Use the following command to get a list of options.

sloris -h

Example run

sloris localhost -p 8080 -c 1000 -m GET -u /page -t 5 -pc true

Repository

For more information or contribution please take a look at the git repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sloris-1.0.3.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file sloris-1.0.3.tar.gz.

File metadata

  • Download URL: sloris-1.0.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for sloris-1.0.3.tar.gz
Algorithm Hash digest
SHA256 02a926bdf5b80ea35ea2dcec5fe20e3cf621d4002b870d7c2c048e6eb4482fd9
MD5 9db5a4a0fee7b71bfffae0e2f34be040
BLAKE2b-256 83fd05dc30e1f88f5c810cb43868e93b25a11bc3edcf00812456b7d669c10df2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page