// htb writeup Hack The Box 2026-02-25
Bastion
HackTheBox Easy Hack The Box
root obtained // PWNED

🧪 Bastion – Hack The Box

Platform: Hack The Box
Difficulty: Easy
IP Address: 10.10.10.134
Date Completed: [Insert Date]


🧭 Overview

Bastion is an Easy-rated Windows machine that contains a Virtual Hard Disk (VHD) file shared via SMB. By mounting and inspecting this disk, user hashes can be extracted from the SAM and SYSTEM files. Once cracked, valid user credentials provide SSH access to the system. Privilege escalation is then achieved by exploiting mRemoteNG’s insecure password storage, allowing retrieval of administrator credentials.


🔍 Enumeration

🔎 Nmap

nmap -p- --min-rate=1000 -T4 10.10.10.134
nmap -p22,135,139,445 -sC -sV -T4 10.10.10.134

📁 SMB Share

smbclient -N -L //10.10.10.134
smbclient -N //10.10.10.134/Backups

Discovered a VHD file within the Backups share.


🪜 Foothold

samdump2 SYSTEM SAM > hashes.txt

🔑 SSH Access

ssh l4mpje@10.10.10.134
# password: bureaulampje

📄 user.txt
681cf1f0************************


⚙️ Privilege Escalation

🧑‍💼 Administrator Access

ssh Administrator@10.10.10.134
# password: thXLHM96BeKL0ER2

📄 root.txt
5feb8575************************


🧠 Lessons Learned


📸 Proof

bastion.png