module

WinRM Script Exec Remote Code Execution

Disclosed
Nov 1, 2012
Created
May 30, 2018

Description

This module uses valid credentials to login to the WinRM service
and execute a payload. It has two available methods for payload
delivery: Powershell 2 (and above) and VBS CmdStager.

The module will check if Powershell is available, and if so uses
that method. Otherwise it falls back to the VBS CmdStager which is
less stealthy.

Author

thelightcosine

Platform

Windows

Architectures

x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/winrm/winrm_script_exec
msf exploit(winrm_script_exec) > show targets
...targets...
msf exploit(winrm_script_exec) > set TARGET < target-id >
msf exploit(winrm_script_exec) > show options
...show and set options...
msf exploit(winrm_script_exec) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.