Hi friends,
I've just finished the Legacy box on Hack The Box, and it's retired so I would like to write down my solution. First, I have to say that I'm totally new in pentesting or CTF playing. That's why I did take a look on Hack The Box labs to find the most easiest boxes to start with, and I found 4 boxes: Legacy, Blue, Lame and Jerry.
I just picked Legacy box randomly and started with nmap scanning: "nmap -p 1-63335 -T4 -A -v 10.10.10.4" and found that we had 3 ports opening: 139, 445, 3389.
Then, I kept using nmap to check for if these is any vulnerabilities on port 445: "nmap --script vuln -p445 10.10.10.4" and got the MS08-067 (CVE-2008-4250) vulnerability.
Now, I could use Metasploit to exploit for the above bug: "use exploit/windows/smb/ms08_067_netapi
". You might need to set rhost option before running the exploit. After that, we will have the shell and we could find the needed flags on the Desktop folders of Administrator and john users.
". You might need to set rhost option before running the exploit. After that, we will have the shell and we could find the needed flags on the Desktop folders of Administrator and john users.
Happy hacking and see you guys later!
Comments
Post a Comment