Rapid7 Vulnerability & Exploit Database

Regsvr32.exe (.sct) Command Delivery Server

Back to Search

Regsvr32.exe (.sct) Command Delivery Server

Created
05/30/2018

Description

This module uses the Regsvr32.exe Application Whitelisting Bypass technique as a way to run a command on a target system. The major advantage of this technique is that you can execute a static command on the target system and dynamically and remotely change the command that will actually run (by changing the value of CMD). This is useful when combined with persistence methods (e.g., a recurring scheduled task) or when flexibility is needed through the use of a single command (e.g., as Rubber Ducky payload).

Author(s)

  • Casey Smith
  • Trenton Ivey
  • mubix <mubix@hak5.org>

Development

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 auxiliary/server/regsvr32_command_delivery_server
msf auxiliary(regsvr32_command_delivery_server) > show actions
    ...actions...
msf auxiliary(regsvr32_command_delivery_server) > set ACTION < action-name >
msf auxiliary(regsvr32_command_delivery_server) > show options
    ...show and set options...
msf auxiliary(regsvr32_command_delivery_server) > run 

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

;