From 89985be14379f98722815e3ebd5852d0d10a0cb4 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 28 May 2018 19:51:31 +0200 Subject: [PATCH] Disallow backslashes in bash file-read --- _gtfobins/bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_gtfobins/bash.md b/_gtfobins/bash.md index f65ca98..d012f1a 100644 --- a/_gtfobins/bash.md +++ b/_gtfobins/bash.md @@ -48,5 +48,5 @@ functions: - description: It trims trailing newlines. code: | export LFILE=file_to_read - bash -c $'read -d \x04 a < "$LFILE"; echo "$a"' + bash -c $'read -r -d \x04 a < "$LFILE"; echo "$a"' ---