GTFOBins.github.io/_gtfobins/xxd.md

20 lines
360 B
Markdown
Raw Normal View History

2018-06-12 16:06:16 +02:00
---
functions:
file-write:
2018-07-04 20:26:52 +02:00
- code: |
LFILE=file_to_write
echo data | xxd | xxd -r - "$LFILE"
file-read:
- code: |
LFILE=file_to_read
xxd "$LFILE" | xxd -r
suid-enabled:
- code: |
LFILE=file_to_read
./xxd "$LFILE" | xxd -r
sudo-enabled:
- code: |
LFILE=file_to_read
sudo xxd "$LFILE" | xxd -r
2018-06-12 16:06:16 +02:00
---