Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
impersonate — A windows token impersonation tool | Kitploit
Tools/GitHubGitHub/sensepost/impersonate
Privilege EscalationImpersonation ToolsLateral MovementPost-ExploitationRed TeamingAdversarial Attack
GitHubsensepost/impersonate

impersonate

A windows token impersonation tool

View Repository
32744203 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Impersonate

Description

This repo contains the toolings that was developped while writing the following blog post https://sensepost.com/blog/2022/abusing-windows-tokens-to-compromise-active-directory-without-touching-lsass/. The blog post contains all necesary information to understand how the token manipulation internal mechanism works and how we can use it to our advantage.

Content

This repo contains four tools:

  • A standalone binary (Impersonate/) that you can use to manipulate tokens on a Windows computers remotely (PsExec/WmiExec) or interactively
  • The CrackMapExec python module (impersonate.py) with the embedded Impersonate binary
  • The embedded CrackMapExec binary (CME_module/) which is the same as the Impersonate.exe binary without printf's
  • The list_tokens.c C++ code that is presented on the blog post

Impersonate.exe usage

The Impersonate.exe tool contains three modules:

  • Impersonate list: which will list available tokens image
  • Impersonate exec: which will allow you running commands impersonating a user
  • Impersonate adduser: which will allow you elevating your privileges to domain admin

Compilation instructions

In order to compile the projects you will have to switch the Runtime library options to Multi-threaded Debug (/MtD) in the project properties.

Download Tool