1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/chown.md
2018-09-05 17:59:07 +01:00

341 B

description functions
This can be run with elevated privileges to change ownership and then read, write, or execute a file.
suid-enabled sudo-enabled
code
LFILE=file_to_change ./chown $(id -un):$(id -gn) $LFILE
code
LFILE=file_to_change sudo chown $(id -un):$(id -gn) $LFILE