mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
20 lines
380 B
Markdown
20 lines
380 B
Markdown
---
|
|
functions:
|
|
file-write:
|
|
- code: |
|
|
LFILE=file_to_write
|
|
echo "data" | dd of=$LFILE
|
|
file-read:
|
|
- 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
|
|
---
|