root@sparrow:~/writeups$ cat goldeneye.md
// Offensive
GoldenEye
6 Nov 2026
· 9 min read
· root access
Executive summary — GoldenEye is a Medium Linux room on TryHackMe built around a James Bond themed mail-and-training environment. A comment left in a JavaScript file leaks an HTML-encoded password, which leads to a non-standard POP3 service; brute-forcing POP3 accounts and reading their mailboxes yields credentials for a Moodle training portal. An image hides the admin password in its EXIF metadata, and the Moodle administrator abuses the spell-checker's configurable binary path to run a reverse shell as www-data. A kernel overlayfs flaw (CVE-2015-1328) finishes the job. A Web → POP3 → Moodle → RCE → Kernel exploit → Root journey.
| Platform | TryHackMe |
| Operating system | Linux |
| Difficulty | Medium |
| Room | GoldenEye |
| Target IP | MACHINE_IP |
Attack map
[80/HTTP] terminal.js comment leaks HTML-encoded password (boris)
| decode entities -> boris's default web password
v
[55007/POP3] non-default port, default password rejected
| hydra + fasttrack.txt -> boris, natalya, doak
| mailboxes reveal more usernames and a Moodle login (xenia)
v
[MOODLE] severnaya-station.com/gnocertdir (needs /etc/hosts entry)
| doak's mail -> dr_doak -> private file -> image on the web server
| EXIF description = base64 -> admin password
v
[ADMIN -> RCE] Aspell path = reverse shell, spell-check a blog post
| shell as www-data
v
[KERNEL] 3.13.0-32 + cc present -> overlayfs exploit (CVE-2015-1328)
v
[ROOT] /root/.flag.txt
1. Reconnaissance
We begin with a full TCP sweep. Default scripts and version detection tell us not just what is open but what runs behind each port, which matters here because some services are deliberately moved off their usual ports.
sudo nmap -sV -sC -p- -v MACHINE_IP
-p-scans all 65535 ports. A default scan would miss the two high-numbered POP3 listeners entirely.-sVfingerprints versions;-sCruns the default NSE scripts (HTTP title, TLS certificates, SMTP and POP3 capabilities).-vprints open ports as they are discovered, so we do not have to wait for the end of a long scan.
PORT STATE SERVICE VERSION
25/tcp open smtp Postfix smtpd
80/tcp open http Apache httpd 2.4.7 ((Ubuntu))
55006/tcp open ssl/pop3 Dovecot pop3d
55007/tcp open pop3 Dovecot pop3d
Analysis: four open ports: SMTP (25), a web server (80), and Dovecot POP3 in a TLS flavour (55006) and a plain/STARTTLS one (55007). Apache 2.4.7 and the Postfix banner point to an old Ubuntu release (the 14.04 era), which becomes relevant for the kernel later. The web page is the natural starting point and the mail service the likely second stage.
🔒 Clearance required
Root Access unlocks the content you can't see — everything else on the site is already open.
See Root Access plansNo account? Create one free then upgrade from your console.