Giter VIP home page Giter VIP logo

atk-for-test / hera Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

Hera is a slow denial of service tool that exploits the fact that some web servers will dump files to disk by default as they are being uploaded (sometimes even if the hosted application has not implemented file upload). This makes it possible to use up disk space and sometimes RAM/Swap. Different servers will respond differently to this but in many cases it leads to instability and/or crash of the system.

C++ 100.00%

hera's Introduction

Hera 0.8

Description

Hera is a slow denial of service tool that exploits the fact that some web servers will dump files to disk by default as they are being uploaded (sometimes even if the hosted application has not implemented file upload). This makes it possible to use up disk space and sometimes RAM/Swap. Different servers will respond differently to this but in many cases it leads to instability and/or crash of the system.

Usage

Compiling
g++ -std=c++11 -pthread main.cpp -o hera -lz
Running
./hera host port threads connections path filesize files endfile gzip timeout 
./hera 192.168.0.209 80 5000 3 /test.php 0.03 20 0 0 20
Increasing file descriptor limit

vim /etc/security/limits.conf

* soft nofile 65000
* hard nofile 65000
root soft nofile 65000
root hard nofile 65000

Restart or relog.

Test case 1

Apache 2.4.x running with mod_php enabled and a mode that is not limited by a low amount of threads (in which case this would become a normal slowloris like attack). The tool must be run towards a php file for mod_php to be called and the files to be dumped to disk. The following usage example would start an attack against IP 192.168.0.209 on port 80 and the script test.php. 5000 threads would be opened with 3 sockets in each, resulting in 15000x20=300000 files (0.3 MB each, that's 90000 MB) being dumped to disk. Disk space, RAM and Swap will run out, it depends on the setup which one fails first of course.

./hera 192.168.0.209 80 5000 3 /test.php 0.3 20 0 0 120

hera's People

Contributors

jra89 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.