Lab
Exploitation and post-exploitation driven from the Armitage GUI, including dumping hashes and pivoting to a second victim.
Exploit the First Target
Find the rejetto module, configure it, and exploit. Enable the reverse connection when configuring the payload:
enable reverse connection
Interact with the target:
Open the meterpreter option from Armitage and run getsystem:
Dump Hashes
Hashdump via Meterepter 1 > Access > Dump Hashes > registry method:
Add a Pivot
-
Meterpreter 1 > Pivoting > Setup -
Add the victim 2 host IP.
-
scan(right-click the target). -
Search
portscanand enumerate the target. -
View
services(right-click the target). -
Set up a port forward:
portfwd add -l 1234 -p 80 -r 10.3.16.26-lroutes the victim's port 80 to our chosen local port 1234.-pis the victim port, 80.-ris the victim IP.
-
From the
consoletab, scan the forwarded port locally:db_nmap -sV -p 1234 localhost
Exploit the Second Target (BadBlue)
Open Meterpreter 2 > Interact > Meterpreter Shell and check the session, then elevate:
sysinfo
getuid
getsystem
Dump hashes via the registry method: