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

module

WebExec Authenticated User Code Execution

Disclosed
Oct 24, 2018
Created
Mar 19, 2019

Description

This module uses a valid username and password of any level (or
password hash) to execute an arbitrary payload. This module is similar
to the "psexec" module, except allows any non-guest account by default.

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