From 80abdca9d185b5bcfadbdcc43ed3b501b1642640 Mon Sep 17 00:00:00 2001 From: Dov Murik Date: Tue, 12 Jun 2018 14:08:02 +0000 Subject: [PATCH] Add shuf --- _gtfobins/shuf.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _gtfobins/shuf.md diff --git a/_gtfobins/shuf.md b/_gtfobins/shuf.md new file mode 100644 index 0000000..508ee91 --- /dev/null +++ b/_gtfobins/shuf.md @@ -0,0 +1,17 @@ +--- +functions: + description: + A newline char is added to the data. The data may contain several lines: `shuf -e $'line 1\nline 2\nline 3' -o file_to_write` + sudo-enabled: + - code: | + LFILE=file_to_write + sudo shuf -e data -o "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_write + ./shuf -e data -o "$LFILE" + file-write: + - code: | + LFILE=file_to_write + shuf -e data -o "$LFILE" +---