mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
17 lines
407 B
Markdown
17 lines
407 B
Markdown
---
|
|
description: This can be used to move and then read or write files from a restricted file systems or with elevated privileges.
|
|
functions:
|
|
suid-enabled:
|
|
- code: |
|
|
LFILE=file_to_write
|
|
TF=$(mktemp)
|
|
echo "DATA" > $TF
|
|
./mv $TF $LFILE
|
|
sudo-enabled:
|
|
- code: |
|
|
LFILE=file_to_write
|
|
TF=$(mktemp)
|
|
echo "DATA" > $TF
|
|
sudo mv $TF $LFILE
|
|
---
|