Hack The Box:Knife(Linux)

 The nmap scan for this box shows port 22 and 80 open

nmap scan

Lets see what is there on port 80 first.

webpage

There is nothing on this web page . There are no links to click on and nothing interesting for us is present.

directory busting

Directory busting also leads us nowhere ,so we might need to look at the version of different technologies on the webpage.

wappalyzer

Apache and PHP both are interesting but let’s try focusing on PHP as of now because a very interesting exploit is available for that.

php backdoor

We can easily get the shell and the user flag. Now we need to focus on privilege escalation.

sudo privileges

So we look for sudo privileges and find a command knife which is interesting and we can find information about this command.

knife command

knife needs a subcommand and in our case we will use exec subcommand and we give the command to show the root flag using this.

root flag

We are root! Happy Hacking!!!!


Comments

Popular posts from this blog

HackTheBox:Blunder(Linux)

HackTheBox:Tabby(Linux)

Legacy:Hack The Box(Windows)