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

module

SMB to Meterpreter Upgrade via PsExec

Disclosed
N/A
Created
Jun 25, 2026

Description

Upgrades an authenticated SMB session to a Meterpreter session using PsExec techniques.
This module uploads a service-wrapped executable payload to the ADMIN$ share via the
existing authenticated SMB connection, then creates and starts a Windows service that
executes the payload. This mirrors the approach used by exploit/windows/smb/psexec.
Requires administrative privileges on the target.

Author

Dean Welch

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 post/windows/manage/smb_to_meterpreter
msf post(smb_to_meterpreter) > show actions
...actions...
msf post(smb_to_meterpreter) > set ACTION < action-name >
msf post(smb_to_meterpreter) > show options
...show and set options...
msf post(smb_to_meterpreter) > run

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.