Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
dcomhijack — 使用DCOM和DLL劫持进行横向移动 | Kitploit
工具/GitHubGitHub/wkl-sec/dcomhijack
漏洞利用横向移动后渗透利用渗透测试红队Payload 开发
GitHubwkl-sec/dcomhijack

dcomhijack

使用DCOM和DLL劫持进行横向移动

查看仓库
3273263年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

DCOM DLL 劫持

我们最近发现以下 DCOM 类存在 DLL 劫持风险。如果攻击者能够写入关联路径,他们就可以通过实例化 COM 对象进行横向移动。某些类还有其他此处未列出的 DLL 劫持机会。

类DLL 路径进程架构
WordPad DocumentC:\Program Files\Windows NT\Accessories\XmlLite.dllwordpad.exex64
CLSID_ContactReadingPaneC:\Program Files\Common Files\System\UxTheme.dllprevhost.exex64
User OOBE Create Elevated Object ServerC:\Windows\System32\oobe\USERENV.dlldllhost.exex64
MSDAINITIALIZE*C:\Program Files\Common Files\System\Ole DB\bcrypt.dlldllhost.exex64
ShapeCollector ClassC:\Program Files\Common Files\Microsoft Shared\ink\DUI70.dllShapeCollector.exex64
Microsoft WBEM Unsecured ApartmentC:\Windows\System32\wbem\wbemcomn.dllunsecapp.exex64
Microsoft WBEM Active Scripting Event Consumer ProviderC:\Windows\System32\wbem\wbemcomn.dllscrcons.exex64
Voice Toast Callback*C:\Windows\System32\WinBioPlugIns\MFPlat.dllsvchost.exex64
Add to Windows Media Player listC:\Program Files (x86)\Windows Media Player\ATL.dllsetup_wm.exex86
Windows Media Player Burn Audio CD HandlerC:\Program Files (x86)\Windows Media Player\PROPSYS.dllwmplayer.exex86

* 仅适用于 Windows 11 和 Windows Server 2022

本仓库包含一个 Cobalt Strike BOF 和一个 Impacket 脚本,用于复制 DLL 并实例化 COM 对象。同时还包括导出定义和基本 DLL 模板。

用法

构建 DLL

仓库中包含一个用于测试的简单 DLL 模板。所需的导出转发在不同版本之间略有变化,有时会导致劫持失效。我们提供了一个实用脚本,用于为目标 DLL 生成导出定义。Windows Server 2022/11 和 10 的定义文件位于 exports 目录中。你可以编辑 Makefile 的第一行来指定导出目录名称。如果你需要特定 Windows 版本中的 DLL,Winbindex 是一个很好的资源。

执行 DLL

这两种实现都需要你指定以下简写类名之一:

  • WordPadDocument
  • ContactReadingPane
  • UserOOBE
  • MSDAINITIALIZE
  • ShapeCollector
  • WBEMUnsecuredApt
  • WBEMActiveScript
  • VoiceToastCallback
  • AddToWMPList
  • WMPBurnCD

Cobalt Strike BOF

root@kitploit:~
upload-dll <class name> <target IP or hostname> [DLL path]
create-object <class name> <target IP or hostname>

Impacket Script

root@kitploit:~
dcomhijack.py -object <class name> [[domain/]username[:password]@]<targetName or address>

兼容性

BOF 和 Impacket 脚本已在以下 Windows 版本/架构上进行了测试:

  • Windows 10 x64
  • Windows 11 x64
  • Windows Server 2022 x64

已知问题

  • 某些进程在对象实例化后会立即退出。你可能需要创建新进程或注入到现有进程中以保持访问。
  • 某些进程会保持存活,并且在后续实例化时不会重新加载 DLL。你可能需要终止该进程才能重新加载 DLL。

致谢

  • 最初的想法来自 @domchell 及其关于通过 DLL 劫持进行横向移动的博客文章。
  • Impacket 脚本基于 dcomexec.py
  • BOF 基于 @Yas_o_h 的 DCOM Lateral Movement BOF
下载工具