Vulnversity (Privilege Escalation)
Misconfigured Permissions — sudo/SUID
Practice box https://tryhackme.com/room/vulnversity
0. Prepare your payload root.service
root.service
1. Find files/directories that writable
or
2. Transfer the payload(There might be other ways)
Init the target listening to the port
Send the file to target
3. Start listening on the 9999
4. Execute the payload(assume the file is under /var/tmp)
5. The listening 9999 would give you the root
6. Alternative solution: https://gtfobins.github.io/gtfobins/systemctl/
Expand Knowlege
https://stackoverflow.com/questions/2491985/find-all-writable-files-in-the-current-directory
https://www.maketecheasier.com/netcat-transfer-files-between-linux-computers/
Last updated
Was this helpful?