Meterpreter allows us to use several Meterpreter extensions, which provide us with enhanced features, such as the ability to execute PowerShell and Python commands, create interactive PowerShell prompts, perform LAN attacks, sniff traffic, and much more.
- In this recipe, we will start by loading the PowerShell extension with the
load powershell
command and have a look at which commands were added to our Meterpreter session using thehelp
command:
meterpreter > load powershell Loading extension powershell...Success. meterpreter > help powershell Powershell Commands =================== Command Description ------- ----------- powershell_execute Execute a Powershell command string powershell_import Import a PS1 script or .NET Assembly DLL powershell_shell Create an interactive Powershell prompt meterpreter >
- The first command we will check is the
powershell_execute
command, which allows us to execute PowerShell commands:
meterpreter > powershell_execute...