Course contentsShow
← Security
Lesson 2198 of 3,05243. Offensive Security ToolingFree lesson

Post-Exploitation Modules

Using post-exploitation modules for privilege escalation, credential harvesting, lateral movement, and persistence.

Post-Exploitation Modules

What you'll learn: How to leverage Metasploit's post-exploitation modules to escalate privileges, harvest credentials, move laterally, and maintain persistence after initial compromise.

What Are Post-Exploitation Modules?

Once you've gained initial access through an exploit, your work isn't done—it's just beginning. Post-exploitation modules are specialized tools within Metasploit designed to help you accomplish objectives after you've compromised a system. Think of exploitation as breaking into a building; post-exploitation is searching for keys, passwords, blueprints, and additional doors to other rooms.

Core Post-Exploitation Capabilities

Privilege Escalation

Post-exploitation modules can scan for and exploit privilege escalation vectors like UAC bypasses, token manipulation opportunities, and weak service configurations. These modules automate what you previously learned to do manually—finding paths from low-privileged user to SYSTEM or root.

Credential Harvesting

Modules exist for dumping credentials from memory (LSASS), extracting cached passwords, and gathering authentication tokens. This builds on techniques like pass-the-hash by automatically collecting the raw material needed for lateral movement.

Lateral Movement

Post modules can enumerate network shares, execute commands on remote systems, and pivot through the network—leveraging SMB, PowerShell remoting, and other methods you've studied.

Persistence

Modules automate the installation of backdoors, registry keys, scheduled tasks, and service modifications to maintain access even after reboots or detection.

Using Post Modules

In MSFconsole, post modules follow the pattern post/platform/category/module_name. After establishing a Meterpreter session, you use use post/... and set the SESSION option to your active session ID, then run the module against your compromised target.

Key Takeaway: Post-exploitation modules transform Metasploit from an exploitation framework into a complete offensive platform, automating credential harvesting, privilege escalation, lateral movement, and persistence after initial compromise.