Home CTFs | CTF-inter-INSA2024 | Realist | Admin Files
Post
Cancel

CTFs | CTF-inter-INSA2024 | Realist | Admin Files

Let’s run nmap on the target:

nmap

There are 2 ports open:

  • 22 -> ssh
  • 80 -> website

On the web site is run with the elfinder software which is an open-source file manager for web.

elfinder

There is one file on the website named CredsE.txt which contains credentials encoded with ROT.

creds_rot

We decode it with Cyberchef and get the debian credentials:

cyberchef

We connect as debian and get the user flag.

user_flag

debian can /usr/bin/python with sudo permissions so the privesc is quite easy.

root_flag

We’ve got the root flag 🎉

This post is licensed under CC BY 4.0 by the author.