Closed GinjaChris closed 8 years ago
I think this will work. Need a basic stunnel config like this in /etc/stunnel/pentmenu.conf:
[SLOWLORIS]
client=yes
accept=127.0.0.1:80
connect=$TARGET:$PORT
verify=0
then launch stunnel as root user:
$ sudo stunnel pentmenu.conf
Then launch netcat at the local listener 127.0.0.1:80 in the usual manner.
However, if using a high random port (not 80 like in this example) it has to have an entry in /etc/services, for example if we use port 9999 we'll have to ensure that is appended to /etc/services. See the section "Running stunnel in daemon mode" in https://www.stunnel.org/howto.html
I think this can be done with stunnel but need to test