Wgel CTF
Task 1: Wgel CTF

Question
User flag
Let's scan the target using
nmap.
There are two open ports:
22
ssh
80
http
Let's check the
/index.htmlpage.

We can view the page source using
CTRL+U.

Let's scan all the directories using
gobuster.
We can visit the
/sitemappage using our browser.The webpage made my browser crash as soon as I visited it.
We can search one layer deeper.
We can now visit
/sitemap/.sshusing our browser.

Let's download the
id_rsafile usingwget.
Let's change the permissions on the
id_rsafile.
Now we can login as
jessie.
Let's read the user flag.
Answer
Root flag
Let's check the
sudopermissionsjessiehas.
So we can post a file to our machine as
jessiewithout using a password.Let's find the file the we need to post.
Let's start a listener using
nc.
Let's send the file now.
We can go back to check the listener.
Answer
Last updated
Was this helpful?