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

module

Windows Gather Local Admin Search

Disclosed
N/A
Created
May 30, 2018

Description

This module will identify systems in a given range that the
supplied domain user (should migrate into a user pid) has administrative
access to by using the Windows API OpenSCManagerA to establishing a handle
to the remote host. Additionally it can enumerate logged in users and group
membership via Windows API NetWkstaUserEnum and NetUserGetGroups.

Authors

Brandon McCann "zeknox" [email protected]
Thomas McCarthy "smilingraccoon" [email protected]
Royce Davis "r3dy" [email protected]

Platform

Windows

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/gather/local_admin_search_enum
msf post(local_admin_search_enum) > show actions
...actions...
msf post(local_admin_search_enum) > set ACTION < action-name >
msf post(local_admin_search_enum) > show options
...show and set options...
msf post(local_admin_search_enum) > 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.