From cda16548097329014dc37206fcf96746b8a4d43c Mon Sep 17 00:00:00 2001 From: Chris Frederick Date: Mon, 17 Dec 2018 07:46:30 -0600 Subject: [PATCH] Add openssl-enc commands (#41) --- _gtfobins/openssl.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 _gtfobins/openssl.md diff --git a/_gtfobins/openssl.md b/_gtfobins/openssl.md new file mode 100644 index 0000000..107b0f6 --- /dev/null +++ b/_gtfobins/openssl.md @@ -0,0 +1,24 @@ +--- +functions: + file-write: + - code: | + LFILE=file_to_write + echo DATA | openssl enc -out "$LFILE" + - code: | + LFILE=file_to_write + TF=$(mktemp) + echo "DATA" > $TF + openssl enc -in "$TF" -out "$LFILE" + file-read: + - code: | + LFILE=file_to_read + openssl enc -in "$LFILE" + suid: + - code: | + LFILE=file_to_write + echo DATA | openssl enc -out "$LFILE" + sudo: + - code: | + LFILE=file_to_write + echo DATA | sudo openssl enc -out "$LFILE" +---