As you know, after exploiting a flaw on a target machine with the Metasploit Framework, a session meterpreter is open, which gives us full control of the machine. But how do you take full advantage of all the commands in this excellent Meterpreter script?
Here we will see the list of the main meterpreter commands that you will need to properly manipulate the system the way you want to use the full power of scripting.
The article "What is Metasploit and how to use it well"clearly explains the tool Metasploit with practical and easy examples. It is very useful to have read it before continuing to read this one.
The main Meterpreter commands
Getcountermeasure allows you to disable security measures such as antivirus, firewalls, and others.
The gettelnet script is used to enable telnet on the victim's machine.
Checkvm used to see if you are running a virtual machine or not.
prefetchtool allows you to have the 10 programs most used by the target machine.
KillAV allows most antivirus programs to be disabled.
sysinfo displays information about the operating system used by the victim.
Shell gives you the option to open an MS-DOS dialog box
ScreenSpy a very useful command for taking screenshots remotely.
scrapper allows us to import a whole lot of information on the target (the registry, hash, users,…) onto our computer.
keylogrecorder allows us to start a keylogger on the victim's pc.