Metasploit Section 5 of 10
Meterpreter Commands
Meterpreter is Metasploit's advanced payload that provides an interactive shell with many built-in commands. It runs entirely in memory, making it harder to detect.
sysinfoDisplay system information (OS, architecture, hostname)getuidShow current user IDpsList running processesmigrateMigrate to another process for stability or privilege evasionshellDrop into a system shellbackgroundBackground the session and return to msfconsoledownloadDownload a file from the targetuploadUpload a file to the targetsearchSearch for files on the target filesystemhashdumpDump password hashes (Windows SAM database)keyscan_startStart keyloggerkeyscan_dumpDump captured keystrokesscreenshotCapture target screen imagewebcam_snapCapture image from target webcamportfwdCreate port forwarding through the sessionrouteAdd routing for pivoting through the compromised hostload kiwiLoad Mimikatz module for credential extractiongetsystemAttempt to elevate to SYSTEM privilegesclearevClear Windows event logsTip
Use
background to return to msfconsole while keeping your Meterpreter session alive. Then use sessions -i ID to return to it.Privilege Escalation
Meterpreter includes several methods to escalate privileges:
getsystem- Attempt to elevate via kernel exploitsload kiwi- Load Mimikatz for credential theftuse post/multi/recon/local_exploit_suggester- Find local exploits