DAV TryHackMe
Introduction
1) Port Scan
as usual, as the http is open, we go to the web browser and see what is in there. Don't forget to see the source code to see if there is anything interesting.
as we inspect, there is nothing we can find.
2) Directory scan
let's see if there is any directory that we can acces
as we go to the /webdav, it prompt us with username and password
3) Cadaver
as we search on the internet, we can see there is a default credential for this "dav"
there is a hash given under one of the directory, but sadly I can't crack it.
alternatively, I dig around google and find this.
which means I can use cadaver command for my next step.
as we can see here, there is a "put" command which we can use to upload a file, which is a "shell" from our own machine to the webdav.
4) Reverse shell
go to revshells.com to create our own reverse shell
copy it and paste it on a document created on our machine.
as you can see we successfully upload it on webdav.
Now make sure that our machine is listening using command below.
as we go back to the browser and execute the shell
and here it contact back to it.
as usual I get around the directories, and finally find the first flag.
5) Elevate/upgarde the shell
Now we need to elevate the shell using command below
to search for the root flag, first let's see what we can do as a root.
here we can see that we can concantenate any file based on the output.
Comments
Post a Comment