From 69be6785a92b6681debe20d7e6221b162d4c8688 Mon Sep 17 00:00:00 2001 From: LinuxSploit <68427058+LinuxSploit@users.noreply.github.com> Date: Tue, 13 Apr 2021 08:00:51 -0400 Subject: [PATCH] Add wc --- _gtfobins/wc.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/wc.md diff --git a/_gtfobins/wc.md b/_gtfobins/wc.md new file mode 100644 index 0000000..a655de7 --- /dev/null +++ b/_gtfobins/wc.md @@ -0,0 +1,16 @@ +--- +description: The file content is parsed as a sequence of `\x00` separated paths. On error the file content appears in a message, so this may not be suitable to read binary files. +functions: + file-read: + - code: | + LFILE=file_to_read + wc --files0-from "$LFILE" + suid: + - code: | + LFILE=file_to_read + ./wc --files0-from "$LFILE" + sudo: + - code: | + LFILE=file_to_read + sudo wc --files0-from "$LFILE" +---