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

module

Windows Gather Enumerate Domain Admin Tokens (Token Hunter)

Disclosed
N/A
Created
May 30, 2018

Description

This module enumerates Domain Admin account processes and delegation tokens.

This module will first check if the session has sufficient privileges
to replace process level tokens and adjust process quotas.

The SeAssignPrimaryTokenPrivilege privilege will not be assigned if
the session has been elevated to SYSTEM. In that case try first
migrating to another process that is running as SYSTEM.

Author

Joshua Abraham [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/enum_tokens
msf post(enum_tokens) > show actions
...actions...
msf post(enum_tokens) > set ACTION < action-name >
msf post(enum_tokens) > show options
...show and set options...
msf post(enum_tokens) > 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.