From 898e6cd6566901a4caa0f0fafdc67986e5ffdd85 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 28 May 2018 20:02:20 +0200 Subject: [PATCH] Add file-write to bash --- _gtfobins/bash.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_gtfobins/bash.md b/_gtfobins/bash.md index 94bccde..b04ff3c 100644 --- a/_gtfobins/bash.md +++ b/_gtfobins/bash.md @@ -49,4 +49,8 @@ functions: code: | export LFILE=file_to_read bash -c $'read -r -d \x04 < "$LFILE"; echo "$REPLY"' + file-write: + - code: | + export LFILE=file_to_write + bash -c 'echo data > $LFILE' ---