1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2025-12-28 11:11:41 +01:00
GTFOBins.github.io/_gtfobins/mv.md
2018-10-05 18:55:38 +01:00

391 B

description functions
This can be used to move and then read or write files from a restricted file systems or with elevated privileges.
suid sudo
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