GTFOBins.github.io/_gtfobins/dd.md

20 lines
380 B
Markdown
Raw Normal View History

2018-05-28 21:34:12 +02:00
---
functions:
file-write:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_write
echo "DATA" | dd of=$LFILE
2018-07-04 20:26:52 +02:00
file-read:
2018-07-16 15:01:50 +02:00
- code: |
LFILE=file_to_read
dd if=LFILE
suid-enabled:
- code: |
LFILE=file_to_write
echo "data" | ./dd of=$LFILE
sudo-enabled:
- code: |
LFILE=file_to_write
echo "data" | sudo -E dd of=$LFILE
2018-05-28 21:34:12 +02:00
---