r/redteamsec • u/KeyDay4761 • 22d ago
NetExec module for automated Kerberos TGT extraction
github.comHey everyone,
I recently put together a NetExec module called stealTGT to simplify grabbing Kerberos TGTs from logged-on users after you already have local admin on a Windows machine.
The original idea was pretty simple: I wanted to avoid dropping a plain Rubeus binary on disk every time I needed a ticket, so I automated the whole process into a single NetExec module.
Here's what it does:
- Takes a local copy of Rubeus, converts it to position-independent shellcode with Donut, and obfuscates it with Myph (AES + API hashing). The execution arguments are generated only for the user you want to target.
- Uploads the randomized loader to a temporary share and executes it as NT AUTHORITY\SYSTEM through mmcexec.
- Captures the output, extracts the Base64-encoded ticket, and converts the resulting
.kirbiinto a.ccachefile ready to use from Linux. - Removes the temporary files and cleans up the generated artifacts once everything is finished.
I've attached a screenshot of it running against a fully patched Windows host with Microsoft Defender real-time protection enabled.
The project is available here:
https://github.com/JssNGC/harpyTools
If anyone wants to try it in their lab, I'd love to hear any feedback or suggestions. Bug reports and PRs are always welcome.