Dancing HackTheBox Walkthrough. Learn cyber security.

Dancing Walkthrough | HackTheBox

This is a simple walkthrough for completing the Dancing target machine in Hackthebox.com.

Task 1

Question: What does the 3-letter acronym SMB stand for?

Answer: Server Message Block

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 2

Question: What port does SMB use to operate at?

Answer: 445

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 3

Question: What network communication model does SMB use, architecturally speaking?

Answer: Client-Server Model

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 4

Question: What is the service name for port 445 that came up in our nmap scan?

Answer: microsoft-ds

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 5

Question: What is the tool we use to connect to SMB shares from our Linux distribution?

Answer: smbclient

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 6

Question: What is the ‘flag’ or ‘switch’ we can use with the SMB tool to ‘list’ the contents of the share?

Answer: -L

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 7

Question: What is the name of the share we are able to access in the end?

Answer: workshares

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 8

Question: What is the command we can use within the SMB shell to download the files we find?

Answer: get

Dancing HackTheBox Walkthrough. Learn cyber security.

Task 9

Submit Flag

Since we already know we can connect to this SMB share through port 445, lets try to access the shares. The first thing we can do is to go through each share to see if any of them are available without a password by just pressing the ‘ENTER’ key on your keyboard when prompted to enter a password.

Dancing HackTheBox Walkthrough. Learn cyber security.

As you can see from the screenshot above, the share named workshares gives us access to the contents without a password. In this share, there are two directories that stand out, which include Amy.J and James.P.

You can search these files with the ls command to show their content inside the directory. To navigate inside the folder, use the cd command as shown in the screenshot below.

Dancing HackTheBox Walkthrough. Learn cyber security.

To download the file, use the get command followed by the file name as shown below.

Dancing HackTheBox Walkthrough. Learn cyber security.

The flag.txt file will be downloaded to your home folder.

SMBCLIENT Commands

smb: \> h
ls             dir            lcd            cd             pwd            
get            mget           put            mput           rename         
more           mask           del            rm             mkdir          
md             rmdir          rd             prompt         recurse        
translate      lowercase      print          printmode      queue          
cancel         stat           quit           q              exit           
newer          archive        tar            blocksize      tarmode        
setmode        help           ?              !              
smb: \> 

Similar Posts