~/d4nnyX

← Ethical Hacking

Post-Exploitation with Armitage

Exploitation · Ethical Hacking

  • Metasploit
  • Armitage
  • Meterpreter
  • Hashcat

What this lab covered

What an attacker does after a foothold. Armitage is a graphical front-end to the Metasploit Framework, and the lab used it to drive a Meterpreter session on a compromised Windows host and explore post-exploitation actions.

Steps

  1. Start the backend. Launch Armitage over Metasploit (msfconsole) and point it at the target.
  2. Get a session. Deliver the payload (here, the victim running a trojanised AdobeReader.exe) to open a Meterpreter session back to the attacker.
  3. Confirm control. Run sysinfo in Meterpreter to fingerprint the victim and prove the foothold.
  4. Keylogger. Start Meterpreter's keystroke capture to record what the user types.
  5. Dump hashes. Use the hashdump module (Meterpreter → Access → Dump Hashes → registry method) to pull the local account hashes from the SAM database.
  6. Crack offline. Feed the hashes into Hashcat against a wordlist.
Meterpreter session opened on the Windows XP victim, sysinfo showing OS and host details
A Meterpreter session on the victim; sysinfo confirms the compromised Windows XP host.

What I took from it

The cracking result was the interesting lesson. Hashcat exhausted the wordlist without cracking the remaining accounts, because they used empty or randomly generated complex default passwords — a reminder that a wordlist attack only beats guessable passwords. A strong, unique password simply does not appear in a dictionary, so it survives.

Defender's view

This stage assumes the attacker is already in, so defence is about limiting the blast radius: strong unique local passwords, protecting LSASS and the SAM, least-privilege accounts so a single host doesn't hand over the domain, and EDR to catch Meterpreter behaviour and hash-dumping.