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.
Unix,Windows
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
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security