From 640956451b2207137974e928abe99c6546038a91 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 28 May 2018 19:56:32 +0200 Subject: [PATCH] Avoid variable 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 de3f92e..94bccde 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 -r -d \x04 a < "$LFILE"; echo "$a"' + bash -c $'read -r -d \x04 < "$LFILE"; echo "$REPLY"' ---