HackMyVM
Enumeration
Port 80
We have a login page. Tried admin/admin and sqlmap, but found nothing
Fuzzing
Use curl to make a request to /a
returns a lot of letters. We can use this to fuzzing
This for will loop every word and make a request, sending the output to a file
The output is a private key
User
We can get the user of the private key using ssh-keygen
The user is icarus
Root
The real trick here it’s the env_keep+=LD_PRELOAD
Linux Privilege Escalation using LD_Preload
Follow this guide we can create a C script and make this script a shared library
Change to /tmp directory and create a C script
And run the following commands