Hack the Box (HTB) machines walkthrough series — Joker

Today, we will be continuing with our exploration of Hack the Box (HTB) machines as seen in previous articles. This walkthrough is of an HTB machine named Joker.

HTB is an excellent platform that hosts machines belonging to multiple OSes. It also has some other challenges as well. Individuals have to solve the puzzle (simple enumeration plus pentest) in order to log into the platform and download the VPN pack to connect to the machines hosted on the HTB platform.

Note: Only write-ups of retired HTB machines are allowed. The machine in this article, named Joker, is retired.

The walkthrough

Let’s start with this machine.

  1. Download the VPN pack for the individual user and use the guidelines to log into the HTB VPN.
  2. The Joker machine IP is 10.10.10.21.
  3. We will adopt the usual methodology of performing penetration testing to begin. Let’s start with enumeration in order to learn as much information about the machine as possible.
  4. As usual, let’s start with the nmap scan to learn more about the services running on this machine.
  5. As we can see, port 22 and proxy is running on this machine on 3128. [CLICK IMAGES TO ENLARGE]
    <<nmap -sC -sV -oA Joker 10.10.10.21>>

  6. We’ll run a full UDP port scan on this machine as well.
    <<nmap -sU -T4 10.10.10.21>>

  7. This also reveals a lot of other ports. TFTP looks especially interesting among them.
    Now we know that squid proxy is running on this machine and its default password location is at /etc/squid/passwords, we’ll log in and extract that.
    <<tftp 10.10.10.21>>
    <<get /etc/squid/passwords>>

  8. We run john on this password.
    <<john –wordlist=/usr/share/wordlists/rockyou.txt passwords>>

  9. We got the password! Now let’s move onto the next enumeration. Since squid is running on this machine, (Read more...)

*** This is a Security Bloggers Network syndicated blog from Infosec Resources authored by Security Ninja. Read the original post at: http://feedproxy.google.com/~r/infosecResources/~3/JYMeBqidAU4/