Create byebug.md

This commit is contained in:
bcoles 2020-03-18 06:12:46 +11:00 committed by GitHub
parent 5decf3493a
commit efb956a7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
_gtfobins/byebug.md Normal file
View File

@ -0,0 +1,21 @@
---
functions:
shell:
- code: |
TF=$(mktemp)
echo 'system("/bin/sh")' > $TF
byebug $TF
continue
limited-suid:
- code: |
TF=$(mktemp)
echo 'system("/bin/sh")' > $TF
./byebug $TF
continue
sudo:
- code: |
TF=$(mktemp)
echo 'system("/bin/sh")' > $TF
sudo byebug $TF
continue
---