Skip to main content

Posts

Showing posts with the label php

HackTheBox - Curling - Retired - Update

HackTheBox - Curling - Retired - Update Recon I've been using threader3000 for my recon scans lately. It does a super quick threaded up/down scan on all TCP ports. It then recommends a nmap scan based on only the open ports discovered during the initial scan, it saves all the nmap scan output to XML that I then convert to HTML to make it pretty. Looks like we just have two ports open 22 and 80 Port 22 is Open SSH 7.6p1 Port 80 is Apache 2.4.29 And nmap thinks it's an ubuntu box. That version of SSH is not terrible old so we can assume this will not be a path for a foothold. Let's check out port 80 and see what we can find there. We see a page with a login form. Do you see the first clue for the box here?  Cewl…. That is a program we can use to scrape words of the page. So it might come in handy for finding a username or password for the login. Let's run it and see what it comes back with. By default the tool looks 3 level deep within a site and only returns possible str

HacktheBox - bashed - Retired - Update

HacktheBox - bashed - Retired - Update Recon I've been using threader3000 to do my recon scan lately. It does a super fast up/down scan on all TCP ports, then suggests an nmap scan to run based on just the open ports found on the first scan. It also saves the nmap results as a XML, which I then convert to HTML to make it pretty. xsltproc ./bashed.htb/bashed.htb.xml -o ./bashed.html Just one open port, port 80 Nmap says it's Apache 2.4.18, and it's likely an Ubuntu box. Let's see what we is being shown to us when we browse to the site. Phpbash? A quick google search lands us on this github https://github.com/Arrexel/phpbash It's a php webshell, and the author says "I actually developed it on this exact server" And it looks like the author of the github is also the person who made this box. Arrexel I think that means there is a webshell somewhere on this server if we can find it. I tried the name listed in the github to see if I could get to the webshell Bot