This article is a detailed command reference and workflow guide for Meterpreter post-exploitation, covering the complete sequence from initial shell acquisition through system reconnaissance, privilege escalation, credential harvesting, network pivoting, and persistence installation. It addresses the gap between obtaining a Meterpreter session and conducting effective post-exploitation work that produces actionable penetration testing findings, providing real command examples and structured exercises for authorised lab environments.
- Five-command baseline for every sessionThe article identifies sysinfo, getuid, getpid, ps, and ifconfig as the first commands to run on every new Meterpreter session because they establish critical baseline information: OS version and architecture (determines applicable exploits), current user context (admin status), running processes (identifies SYSTEM targets for migration), and network interfaces (reveals internal subnets for pivoting). These five commands take under 60 seconds and determine every subsequent exploitation decision.
- Three privilege escalation approaches in orderThe article explains Meterpreter's privilege escalation hierarchy: attempt getsystem first (automated multi-technique approach that surprisingly works on misconfigured systems), then migrate into an existing SYSTEM process identified from ps output (faster and stealthier than exploits), and finally run local_exploit_suggester to identify specific CVE-based exploits if both fail. The article emphasizes that migration into an accessible SYSTEM process is the most direct path when available.
- In-memory file operations and search capabilitiesMeterpreter's file operations (upload, download, search) run entirely in memory through the encrypted channel without obvious filesystem artifacts. The search command can locate sensitive files efficiently across the entire filesystem using wildcards and directory scoping, such as searching for configuration files, SSH keys, or KeePass databases across specified paths.
- Credential harvesting with hashdump and KiwiThe article covers two credential harvesting approaches requiring SYSTEM privileges: hashdump extracts NTLM hashes directly from the Windows SAM database, while loading Kiwi (Meterpreter's integrated Mimikatz) provides cleartext passwords where available from LSASS memory via creds_all, creds_wdigest, creds_msv, and kerberos_ticket_list commands. These hashes feed directly into offline cracking tools like Hashcat.
- Route and SOCKS proxy for internal network pivotingThe article explains that pivoting requires two components: route add [subnet] [session] establishes a routing entry through the compromised host to an internal network, then auxiliary/server/socks_proxy creates a SOCKS server on the attacker's Kali machine. Configuring proxychains to use 127.0.0.1:1080 makes all tools transparently reachable to the internal network through the pivot, enabling scanning and exploitation of networks the attacker cannot reach directly.
- Persistence installation and mandatory cleanupThe article presents persistence mechanisms including run persistence with autostart flags (-X for boot startup, -i for retry intervals), registry run keys, and scheduled task methods. Critically, it emphasizes that every persistence mechanism must be documented and removed before engagement completion—the Metasploit persistence modules automatically generate a cleanup script at /root/.msf4/logs/persistence/ that must be executed, as leaving persistence behind is identified as one of the most serious penetration testing mistakes.
- Network reconnaissance reveals pivoting opportunitiesThe article highlights that ifconfig output is particularly important because any network interface beyond the directly connected interface reveals an internal network the target can access—this represents the actual pivoting target. The article emphasizes that discovering a second internal interface transforms a single-host finding into network-wide compromise potential, often demonstrating that assumed network segmentation was not enforced in practice.
Bottom line: Meterpreter post-exploitation follows a structured workflow starting with the first-five baseline commands, escalating privileges via getsystem or process migration, harvesting credentials with hashdump and Kiwi, and pivoting to internal networks via route and SOCKS proxy—and this entire engagement must conclude with documented removal of all installed persistence mechanisms before completion.
How experienced are you with Meterpreter post-exploitation?
🎯 What This Meterpreter Cheat Sheet Covers
⏱️ Reference guide · Bookmark and use on every engagement
📋 Meterpreter Commands 2026 — Sections
Core and Session Commands
These are the commands that control the Meterpreter session itself — backgrounding, interacting with multiple sessions, dropping to a standard shell, and getting help on any command. Every post-exploitation workflow starts here.
System Reconnaissance
System recon maps the target environment — OS version, current user privileges, running processes, network configuration, and logged-in users. This information feeds directly into privilege escalation decisions and lateral movement planning. Run these commands first on every new Meterpreter session before anything else.
⏱️ 15 minutes · Kali + Metasploitable2 lab · Your own VMs only
📸 Screenshot the sysinfo and ifconfig output. Post to #day-19-hashcat or #meterpreter on Discord.
File Operations
Meterpreter’s file operations run entirely in memory — uploads and downloads go through the encrypted channel without touching the file system in obvious ways. The search command can locate sensitive files across the entire filesystem efficiently. These commands support the evidence-gathering phase of a penetration test: finding configuration files, extracting credentials from known locations, and transferring tools to and from the target.
Privilege Escalation Commands
Privilege escalation in Meterpreter uses three main approaches: getsystem (automated multi-technique escalation), process migration (moving to an already-privileged process), and the local_exploit_suggester module (identifying unpatched local vulnerabilities). Always run getsystem first — it works surprisingly often on misconfigured Windows environments. If getsystem fails, run local_exploit_suggester to identify specific vulnerabilities to exploit.
Credential Harvesting
Credential harvesting is the high-value output of post-exploitation — the evidence that proves actual account compromise in a penetration test report. Meterpreter’s hashdump provides NTLM hashes directly from the Windows SAM database. Kiwi (the Meterpreter Mimikatz integration) extracts cleartext passwords and Kerberos tickets from LSASS memory. Both require SYSTEM privileges.
⏱️ 15 minutes · Kali + Windows lab VM · Your own VMs only
📸 Screenshot the hashdump output (blur sensitive data). Post to #meterpreter on Discord.
Network Pivoting and Port Forwarding
Pivoting turns a single compromised host into a gateway to internal networks. When ifconfig reveals additional network interfaces — private subnets the external attacker cannot reach directly — Meterpreter’s routing and proxy modules allow all tools on Kali to reach those internal networks through the compromised host.
Persistence Mechanisms
Persistence ensures the Meterpreter session survives a reboot and reconnects automatically. In authorised penetration testing, persistence demonstrates that an attacker could maintain long-term access after initial compromise. Always document what persistence mechanisms you install and remove them cleanly before completing the engagement.
⏱️ 15 minutes · Kali + multi-VM lab
📸 Screenshot the proxychains nmap output showing internal hosts discovered via pivot. Post to #meterpreter on Discord. Tag #day11complete
🧠 QUICK CHECK — Meterpreter
📋 Meterpreter Quick Reference — Complete Command List
🏆 Mark as Read — Meterpreter Commands Cheat Sheet 2026
The complete Meterpreter post-exploitation command reference. Bookmark this page — every command you need for a Windows post-exploitation engagement is here with real examples.
❓ Frequently Asked Questions — Meterpreter 2026
What is Meterpreter?
How do you get a Meterpreter shell?
What is the difference between shell and Meterpreter?
How do you escalate privileges with Meterpreter?
How do you pivot through a network with Meterpreter?
How do you clean up Meterpreter persistence?
Metasploit Tutorial Kali Linux 2026
Free Ethical Hacking Course
📚 Further Reading
- Day 10: Metasploit Tutorial Kali Linux 2026 — The Metasploit fundamentals course — msfconsole, modules, and initial exploitation that produces the Meterpreter session this Meterpreter cheat sheet applies to.
- Day 30: Post-Exploitation and Persistence — The ethical hacking course lesson on maintaining access after initial compromise — covers the persistence techniques referenced in this Meterpreter cheat sheet in depth.
- Metasploit Documentation — Meterpreter Commands — The official Metasploit command reference — complete documentation for every Meterpreter module and command.

