root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat legacy.md
// writeups

Legacy

15 Mar 2017 · 8 min read · root access
Legacy - maquina de Hack The Box

Executive summary — Legacy is the textbook Easy Windows box built entirely around MS08-067: a bare-bones Windows XP host with SMB exposed on the network and never patched, vulnerable to CVE-2008-4250 (a path-canonicalization overflow in the Server service). One Metasploit module gives code execution as SYSTEM with zero authentication and zero privilege-escalation phase — the exploit itself already runs at the highest privilege level. One hop: SMB → SYSTEM.

PlatformHack The Box
Operating systemWindows
DifficultyEasy
StatusRetired
Target IP10.129.227.181

Attack map

[135/139/445] TCP recon → Windows XP fingerprint
   │
[445] SMB · microsoft-ds · message signing disabled
   │  MS08-067 / CVE-2008-4250 — NetAPI path-canonicalization overflow (unauth RCE)
   ▼
[SYSTEM]  NT AUTHORITY\SYSTEM (direct — no privesc needed)
   │
   ▼
[LOOT]  user.txt (john) + root.txt (Administrator) — same shell, one shot

1. Reconnaissance

A full-port scan is the right call on a box this old: on legacy Windows the interesting service is rarely on a "well-known" port list, and the top-1000 default nmap scan can miss things. Scanning all 65535 TCP ports with service/version detection and the default NSE scripts costs a couple of extra minutes and removes any doubt.

nmap -p- -sC -sV 10.129.227.181
-p-scan all 65535 TCP ports, not just the top 1000
-sCrun nmap's default NSE script set (banner grabs, basic enumeration)
-sVfingerprint the exact service/version behind each open port
135/tcp  open  msrpc
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds  Windows XP
(message signing disabled)

Analysis: three ports, all classic Windows file-sharing/RPC — 135 (MSRPC endpoint mapper), 139 (NetBIOS session service) and 445 (SMB over TCP, no NetBIOS wrapper needed). Nmap fingerprints the OS behind the stack as Windows XP, and SMB message signing is disabled — a configuration nobody has touched since the box was built. XP + unsigned SMB + no service pack info visible is about as loud a signal as it gets: this is a MS08-067 candidate (and, depending on the exact service pack, possibly MS17-010 too). No web ports, no other services to distract with — SMB is the entire attack surface.

🔒 Clearance required

This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.

See Root Access plans

No account? Create one free then upgrade from your console.