Vulnhub - Pwnlab.

This machine was nice. I learnt something new: remote file inclusion. There are many examples on google. Google it. Let's start:


After trying many stuff, i discover RFI. And, with that information, i manage to get "inside information" of files inside the server. This site explains this hacking method. I manage to get page as base64, so i created python script with that information and decode those pages of the server:


As you can see, you got all information you need - including some from data base, that i got here:

After getting user and password, i manage to upload an "image"(REVERSESHELL) inside the server with BurpSuite.Check it out:


After uploading an "image", please remember to copy this imagem url, so can include this file image in index, cause it had the code below:

My url url was:


So, in burpsuit, to include this image i had to do this:

so i could run it as a php script inside the server, cause it was included. I run to kali terminal before forwarding in burpsuit: nc -lvp 4444.


Now i'm inside. I test other password that i found inside the mysql server. I manage to access kent. After that, i could access mike by hacking msgmike script. When i was at mike, i saw msg2root. I was able to hack it into root. Check this out:

Comentários

Postagens mais visitadas deste blog

Vulnhub - Pinky's palace.

Vulhub - Bulldog: 1.

Vulnhub - Ew-Skuzzy.