From 67a562d2aa07bcf0ddfa370129fbc3537da0a195 Mon Sep 17 00:00:00 2001 From: bcoles Date: Tue, 17 Mar 2020 17:19:50 +1100 Subject: [PATCH] Update shuf.md --- _gtfobins/shuf.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/_gtfobins/shuf.md b/_gtfobins/shuf.md index 606eba7..7b14e74 100644 --- a/_gtfobins/shuf.md +++ b/_gtfobins/shuf.md @@ -1,16 +1,23 @@ --- -description: The read file content is corrupted by adding a newline. functions: + file-read: + - description: The read file content is corrupted by randomizing the order of NUL terminated strings. + code: | + LFILE=file_to_read + shuf -z "$LFILE" file-write: - - code: | + - description: The written file content is corrupted by adding a newline. + code: | LFILE=file_to_write shuf -e DATA -o "$LFILE" suid: - - code: | + - description: The written file content is corrupted by adding a newline. + code: | LFILE=file_to_write ./shuf -e DATA -o "$LFILE" - sudo: - - code: | + sudo: + - description: The written file content is corrupted by adding a newline. + code: | LFILE=file_to_write sudo shuf -e DATA -o "$LFILE" ---