Skip to content

AleksaZatezalo/Impersonator-Shell

Repository files navigation

Impersonator Shell

The Impersonator Shell is a post-exploitation security assessment tool that leverages Windows token manipulation. This project combines the functionality of traditional penetration testing tools with advanced Windows API integration for seamless privilege escalation capabilities.

Key Features

  • Native Token Manipulation: Utilizes Windows API for token operations without requiring external tools.
  • Zero External Dependencies: Operates using only native Windows components.

We are looking to expand the Impersonator Shell with the following:

  • Dumping passwords with LSASS
  • Maintaining Persistance with the Windows API
  • Process Injection

Compilation

gcc .\doexec.c .\main.c .\token_info.c .\winserver.c -o impersonator -lws2_32 %windir%\system32\advapi32.dll

Core Components

Token Management

  • Process token acquisition
  • Privilege elevation through SeImpersonatePrivilege
  • Token impersonation and manipulation

Shell Operations

  • Command execution environment
  • Session handling

Contributing

  1. Issue Tracking: All changes must reference an existing issue

    • Create new issues for undocumented problems
    • Use detailed descriptions and steps to reproduce
  2. Build Process

    • Remove build artifacts before commits
    • Verify clean compilation
    • Update documentation for interface changes

Presentation Information

The Impersonator Shell has been presented at the following conferences:

  • BSides Austin 2024
  • Wild West Hack Fest Mile High 2025

References

Build Your Own Shell (BYOS) Project

SEImpersonatePriveledge

Process Impersonator

Understanding and Abusing Process Tokens — Part I

Understanding and Abusing Process Tokens — Part II

Dump Passwords from LSASS without Mimikatz!

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages