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

module

SAP SOAP RFC SXPG_COMMAND_EXECUTE Remote Command Execution

Disclosed
May 8, 2012
Created
May 30, 2018

Description

This module abuses the SAP NetWeaver SXPG_COMMAND_EXECUTE function, on the SAP
SOAP RFC Service, to execute remote commands. This module needs SAP credentials with
privileges to use the /sap/bc/soap/rfc in order to work. The module has been tested
successfully on Windows 2008 64-bit and Linux 64-bit platforms.

Author

nmonkee

Platform

Unix,Windows

Architectures

cmd, 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/multi/sap/sap_soap_rfc_sxpg_command_exec
msf exploit(sap_soap_rfc_sxpg_command_exec) > show targets
...targets...
msf exploit(sap_soap_rfc_sxpg_command_exec) > set TARGET < target-id >
msf exploit(sap_soap_rfc_sxpg_command_exec) > show options
...show and set options...
msf exploit(sap_soap_rfc_sxpg_command_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.