Rapid7

module

Group Policy Script Execution From Shared Resource

Disclosed
Jan 26, 2015
Created
May 30, 2018

Description

This is a general-purpose module for exploiting systems with Windows Group Policy
configured to load VBS startup/logon scripts from remote locations. This module runs
a SMB shared resource that will provide a payload through a VBS file. Startup scripts
will be executed with SYSTEM privileges, while logon scripts will be executed with the
user privileges. Have into account which the attacker still needs to redirect the
target traffic to the fake SMB share to exploit it successfully. Please note in some
cases, it will take 5 to 10 minutes to receive a session.

Authors

Sam Bertram [email protected]
juan vazquez [email protected]

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