• We are an English-only forum. Selling threads should have samples, or permanent ban.

Blue Walkthrough

DarkIntell

Captain
RaidForum.co
Joined
Apr 20, 2023
Messages
39
Reaction score
28
Credits
0
Hello friends!! Today we are going to solve another CTF challenge “Blue” which is lab presented by Hack the Box for making online penetration practices according to your experience level. They have a collection of vulnerable labs as challenges from beginners to Expert level. HTB have two partitions of lab i.e. Active and retired since we can’t submit a write-up of any Active lab, therefore, we have chosen retried Blue lab.

Level: Beginners

Task: find user.txt and root.txt file in the victim’s machine.

Let’s begin the Game!!

Since these labs are online available therefore they have static IP and IP of blue is 10.10.10.40 so let’s begin with nmap port enumeration.

nmap -p- -A 10.10.10.40 --open

From the given below image, you can observe that we found so many open ports and port 137, 139 and 445 denotes that it is a windows machine.



When I extract the complete result of nmap I found the following details

  • OS: Windows 7 professional
  • Computer name: haris-pc
  • NetBIOS computer name haris-pc
  • SMB version: 02
Great!! Form this result I can conclude username can be “haris” moreover smb 2.02 can be exploited by the eternal blue vulnerability.



Let confirm eternal blue vulnerability in the victim’s system using nmap script.

nmap --script vuln -p445 10.10.10.40

Awesome!! Victim’s machine is vulnerable to eternal blue exploit.



Then I run the msfconsole command in terminal and load Metasploit framework for using the eternal blue module for exploiting target machine.

use exploit/windows/smb/ms17_010_eternalblue
msf exploit(windows/smb/ms17_010_eternalblue) > set rhost 10.10.10.40
msf exploit(windows/smb/ms17_010_eternalblue) >run

Terrific!! I have got unauthorized access of victims command shell through session 1 as shown in below image.

3.png


Inside c:\Users\haris \Desktop I found the user.txt file and used type “filename” command for reading this file.

cd Desktop
type user.txt

Great!! We got our 1st flag successfully



Inside c:\Users\Administrator \Desktop I found a root.txt file and used type “filename” command for reading this file.

cd Desktop
type root.txt

Great!! We got our 2nd flag successfully.

It was a very easy challenge for those candidates who have little to no knowledge of vulnerability analysis.
 
Back
Top Bottom