From 98d5f5f0997a53ef80d9a3dac6b5feced61d2d22 Mon Sep 17 00:00:00 2001 From: cbdev Date: Fri, 28 Mar 2025 16:09:29 +0100 Subject: Add readme --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc7a9dd --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# preload-slowloris + +This library hooks the send(2) and socket(2) symbols and forces the data on +sockets of SOCK_STREAM type (most likely TCP, might also work on other stream +protocols) to be split into multiple segments for transmit. + +## Building + +Running `make` should suffice on a system with a working C compiler. + +## Usage + +Force the library to be loaded using `LD_PRELOAD` + +```shell +LD_PRELOAD=./slowloris.so curl 10.23.25.3 +``` + +A delay between individual send() calls (in microseconds) can be set by +providing `SLOWLORIS_DELAY` like so: + +```shell +SLOWLORIS_DELAY=1000 LD_PRELOAD=./slowloris.so curl 10.23.25.3 +``` -- cgit v1.2.3