root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat cyborg.md
// Offensive

Cyborg

10 Feb 2023 · 9 min read · user access
Executive summary — Cyborg is an Easy Linux room on TryHackMe that chains a web information leak, hash cracking and an encrypted backup. The app exposes a Squid proxy configuration containing an APR1 hash that we crack with John; that password turns out to be the passphrase of a Borg repository downloaded from the admin panel, from which we recover SSH credentials for user alex. Once inside, the final escalation abuses a script runnable as root via sudo. A Web → Borg → SSH → Root journey.
PlatformTryHackMe
Operating systemLinux
DifficultyEasy
RoomCyborg
Target IPMACHINE_IP

Attack map

[80/HTTP]  web application
   |  /etc/squid/passwd exposed -> APR1 hash (music_archive)
   v
[CRACK]  john + rockyou -> music_archive:squidward
   |  download archive.tar from /admin -> Borg repository
   v
[BORG]  borg extract (passphrase: squidward) -> alex's note.txt
   |  recovered SSH credentials
   v
[SSH]  alex@MACHINE_IP  ->  user.txt
   |  sudo -l  ->  abusable root-run script (PATH / writable)
   v
[ROOT]  root.txt

1. Reconnaissance

We start by mapping the attack surface with a full TCP scan, running default scripts and version detection:

sudo nmap -sC -sV -T4 -p- MACHINE_IP

Why these flags:

  • -sC → runs the default NSE scripts (banners, HTTP titles, etc.).
  • -sV → identifies each service's version.
  • -p- → scans all 65535 TCP ports, not just the top 1000.
  • -T4 → aggressive timing template (fast but not reckless).

Relevant result: 22/tcp (SSH) and 80/tcp (HTTP) are open.

Analysis: with SSH and a web service exposed, the entry vector is almost certainly the web application; SSH is saved for later, once we hold credentials.
🔒 Free account required

This is USER ACCESS content — free to unlock, no payment. The rest of the write-up (and everything else at this level) opens up once you're signed in.

Create a free account