Mirai
Executive summary — Mirai is a themed Easy Linux box: the name evokes the Mirai botnet (2016), which infected hundreds of thousands of IoT devices by scanning the Internet for unchanged factory credentials. The target here is exactly that scenario in miniature: a Raspberry Pi running Pi-hole, reachable over SSH with
pi:raspberry, wherepihas unrestrictedsudo→ instant root. The real challenge comes after: the root flag isn't where it should be — you need basic forensics on a USB stick to recover a «deleted» file (spoiler: deleting on Linux doesn't destroy the data).
| Platform | Hack The Box |
| Operating system | Linux |
| Difficulty | Easy |
| Status | Retired |
| Target IP | 10.129.X.X |
Attack map
[22/53/80] Raspberry Pi + Pi-hole
│ default Raspberry Pi credentials (pi:raspberry) over SSH
▼
[SSH] pi (user.txt)
│ sudo -l → (ALL) NOPASSWD: ALL → sudo su
▼
[ROOT] but root.txt isn't in /root — it was «deleted» from a USB stick
│ lsblk → /dev/sdb (/media/usbstick)
▼
[FORENSICS] strings /dev/sdb | grep HTB (deleting ≠ wiping)
▼
[ROOT.TXT recovered]
1. Reconnaissance
As always, we start with a full port and version scan:
nmap -sC -sV -p- 10.129.X.X
22/tcp open ssh OpenSSH
53/tcp open domain dnsmasq (Pi-hole)
80/tcp open http lighttpd — Pi-hole admin panel
Key clue: port 53 running
dnsmasqplus a web panel on 80 that turns out to be Pi-hole (the DNS ad-blocker commonly installed on a home Raspberry Pi) is the device's fingerprint. And a hobbyist Raspberry Pi screams one word: default credentials.
Resumen ejecutivo — Mirai es un Linux Easy temático: el nombre evoca la botnet Mirai (2016), que infectó cientos de miles de dispositivos IoT escaneando Internet en busca de credenciales de fábrica sin cambiar. El objetivo aquí es exactamente ese escenario en miniatura: un Raspberry Pi con Pi-hole al que se entra por SSH con
pi:raspberry, y dondepitienesudosin restricciones → root inmediato. El verdadero reto llega después: la root flag no está donde debería — hay que tirar de forense básico sobre un USB para recuperar un archivo «borrado» (spoiler: borrar en Linux no destruye los datos).
| Plataforma | Hack The Box |
| Sistema operativo | Linux |
| Dificultad | Easy |
| Estado | Retired |
| IP objetivo | 10.129.X.X |
Mapa del ataque
[22/53/80] Raspberry Pi + Pi-hole
│ credenciales por defecto de Raspberry Pi (pi:raspberry) por SSH
▼
[SSH] pi (user.txt)
│ sudo -l → (ALL) NOPASSWD: ALL → sudo su
▼
[ROOT] pero root.txt no está en /root — «se borró» de un USB
│ lsblk → /dev/sdb (/media/usbstick)
▼
[FORENSE] strings /dev/sdb | grep HTB (borrar ≠ eliminar)
▼
[ROOT.TXT recuperada]
1. Reconocimiento
Como siempre, empezamos con un escaneo completo de puertos y versiones:
nmap -sC -sV -p- 10.129.X.X
22/tcp open ssh OpenSSH
53/tcp open domain dnsmasq (Pi-hole)
80/tcp open http lighttpd — panel de administración de Pi-hole
Pista clave: el puerto 53 con
dnsmasqy un panel web en el 80 que resulta ser Pi-hole (el bloqueador de anuncios DNS que suele instalarse en un Raspberry Pi doméstico) son la huella dactilar del dispositivo. Y un Raspberry Pi de andar por casa grita una palabra: credenciales por defecto.
This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.
See Root Access plansNo account? Create one free then upgrade from your console.
Este contenido es solo para Root Access. Todo lo demás del sitio — el nivel gratuito, toda la biblioteca pública — sigue abierto.
Ver planes de Root Access¿Sin cuenta? Crea una gratis y luego mejora desde tu consola.