scr1++y

Writeups for CTF Challenges

View on GitHub

Anthem by Chevalier

IP = 10.10.220.204*
Difficulty: Easy 
Machine OS: Windows
Learning Platform: tryhackme.com
Finished on: Arch Linux

*Note: IP address may vary.

Reconnaissance

Scoping and Preparation

Preliminary Enumeration via nmap

Table 1.1: nmap Results Summary

PORT STATUS SERVICE VERSION
80/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
3389/tcp open ms-wbt-server Microsoft Terminal Services

Nmap Scan

Machine OS: Based on nmap results, it is a Windows OS machine.

Enumeration

Manual Web Enumeration

Webpage at port 80

Wappalyzer

Robots

Note: Manual Enumeration is important.

Email Format

Poem

Admin

Tip: When in doubt, search it in Google.

Table 1.2: Credentials

Username Password
sg@anthem.com UmbracoIsTheBest!

Exploitation

Steps to reproduce:

  1. Navigate to /umbraco directory in web server which is a login page using gathered credentials. Umbraco Login

  2. You should be logged in as SG which is an administrator account. Logged In

  3. Login via RDP (Remote Desktop Protocol) using xfreerdp.

    Syntax: xfreerdp /u:{USERNAME} /p:{PASSWORD} /v:{IP:PORT}

    RDP Login

  4. You should be logged in as SG via RDP.

    RDP Success

Privilege Escalation / Post-Exploitation

Internal Enumeration

Table 1.3: Checklist for Windows Internal Enumeration

COMMAND DESCRIPTION
whoami gets current user name
whoami /priv gets privileges granted on user
net users lists all users in the machine.

Notes: This is not a complete list. To see more detailed list, refer to this.

Tip: When nothing else makes sense, try to use LinPEAS (winPEAS for windows machines.).

Vertical Privilege Escalation

STATUS: ROOTED

The next two steps are not necessary for completion of the machine but it completes the 5 Phases of Penetration Testing.

Post Exploitation / Maintaining Access

Clearing Tracks

Status: Finished

Feel free to reach out and if there is something wrong about the above post. Feedbacks are also appreciated :D

Donation Box

Not required but appreciated :D

ko-fi

"Buy Me A Coffee"

<– Go Back