Posts

HackTheBox:Blunder(Linux)

Image
  Lets hit this off with nmap scan. nmap scan We see that port 80 is open and certainly that’s where we will start but the site doesn’t have much for us. port 80 So we need to explore this a bit and do the directory busting for this target. directory busting We found the admin page , now again we hit a dead end since we don’t have credentials. login page So we do directory busting again. directory busting The other directories are not so interesting but this todo.txt is promising. todo.txt First thing, its written that they need to update the CMS which means that this version is definitely vulnerable and the other thing is that this fergus user needs to do something about uploading images. So we have a username but no password. For password we can brute force our way in but for that we can’t have a random list so we can use  cewl  tool to generate the wordlist. custom wordlist using cewl Now since we know its Bludit ,we should find some  exploit  which can help ...

HackTheBox:Tabby(Linux)

Image
  This was an amazing box with lots to learn. So lets start this with nmap scan with this machine. nmap scan Now with this we have a website in which we are not able to access news.php. So lets add megahosting.htb to /etc/hosts . After this when we try to access news.php we are able to do it. website Now the interesting part is the url ,it has file parameter. We can check if this has LFI vulnerability. lfi check This certainly has lfi so we need to see what kind of file might have something important for us. Upon researching about tomcat we get to know that tomcat stores users information in /usr/share/tomcat9/etc/tomcat-users.xml tomcat-users.xml So now we have a username and password and the roles of this user are admin-gui and manager-script. admin-gui is accessible to us but it has nothing to take us forward. So we need to work on manager-script which isn’t accessible directly ,we do directory busting of this directory. directory busting We get manager/text and we search about ...