Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Powershell Remoting Remote Command Execution

Disclosed
Jan 1, 1999
Created
May 30, 2018

Description

This module uses Powershell Remoting (TCP 47001) to inject payloads on target machines.
If RHOSTS are specified, it will try to resolve the IPs to hostnames, otherwise
use a HOSTFILE to supply a list of known hostnames.

Author

Ben Campbell [email protected]

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/local/powershell_remoting
msf exploit(powershell_remoting) > show targets
...targets...
msf exploit(powershell_remoting) > set TARGET < target-id >
msf exploit(powershell_remoting) > show options
...show and set options...
msf exploit(powershell_remoting) > 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.