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

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

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

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

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/fortalice/bofhound
侦察信息收集渗透测试
GitHubfortalice/bofhound

bofhound

从 ldapsearch BOF、pyldapsearch 和 Brute Ratel 的 LDAP Sentinel 写入的日志中生成 BloodHound 兼容的 JSON

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
bofhound — 从 ldapsearch BOF、pyldapsearch 和 Brute Ratel 的 LDAP Sentinel 写入的日志中生成 BloodHound 兼容的 JSON | Kitploit

本仓库已不再活跃

⛔🚧 本仓库已不再维护。若要提交问题、拉取请求或获取最新版本,请参阅 https://github.com/coffeegist/bofhound 🚧⛔

root@kitploit:~
 _____________________________ __    __    ______    __    __   __   __   _______
|   _   /  /  __   / |   ____/|  |  |  |  /  __  \  |  |  |  | |  \ |  | |       \
|  |_)  | |  |  |  | |  |__   |  |__|  | |  |  |  | |  |  |  | |   \|  | |  .--.  |
|   _  <  |  |  |  | |   __|  |   __   | |  |  |  | |  |  |  | |  . `  | |  |  |  |
|  |_)  | |  `--'  | |  |     |  |  |  | |  `--'  | |  `--'  | |  |\   | |  '--'  |
|______/   \______/  |__|     |__|  |___\_\________\_\________\|__| \___\|_________\

                              作者: Fortalice ✪

BOFHound

BOFHound 是一款离线 BloodHound 数据采集与 LDAP 结果解析工具,兼容 TrustedSec 的 ldapsearch BOF、其 Python 改编版 pyldapsearch 以及 Brute Ratel 的 LDAP Sentinel。

通过解析上述工具生成的日志文件,BOFHound 使操作人员能够使用 BloodHound 广受欢迎的界面,同时完全控制所执行的 LDAP 查询及其执行速度。这为操作人员留出了根据自身判断应对潜在蜜罐账户、昂贵的 LDAP 查询阈值以及其他针对传统自动化 BloodHound 采集器设计的检测机制的空间。

博客 - 精细化你的 AD 侦察游戏

博客 - 精细化你的 AD 侦察游戏 第二部分

安装

BOFHound 可通过 pip3 install bofhound 安装,或克隆本仓库后运行 pip3 install .。

使用方法

示例用法

解析 Cobalt Strike 日志(默认路径 /opt/cobaltstrike/logs)中的 ldapsearch BOF 结果,输出到 /data/ 目录:

root@kitploit:~
bofhound -o /data/

解析 pyldapsearch 日志,并包含所有属性(而非仅常用属性):

root@kitploit:~
bofhound -i ~/.pyldapsearch/logs/ --all-properties

解析 BRc4 日志中的 LDAP Sentinel 数据(默认输入路径将变为 /opt/bruteratel/logs):

root@kitploit:~
bofhound --brute-ratel

ldapsearch

必需数据

以下属性是正常运行所必需的:

root@kitploit:~
samaccounttype
dn
objectsid

ldapsearch 查询示例

获取所有数据(也许改用 BloodHound 更合适?)

root@kitploit:~
ldapsearch (objectclass=*) *,ntsecuritydescriptor

检索所有架构信息

root@kitploit:~
ldapsearch (schemaIDGUID=*) name,schemaidguid -1 "" CN=Schema,CN=Configuration,DC=windomain,DC=local

仅检索 ms-Mcs-AdmPwd 的 schemaIDGUID

root@kitploit:~
ldapsearch (name=ms-mcs-admpwd) name,schemaidguid 1 "" CN=Schema,CN=Configuration,DC=windomain,DC=local

开发

BOFHound 使用 Poetry 管理依赖。从源码安装并设置开发环境:

root@kitploit:~
git clone https://github.com/fortalice/bofhound
cd bofhound
poetry install
poetry run bofhound --help

参考与致谢

  • 感谢 @_dirkjan(及其他贡献者)开发了 BloodHound.py
  • 感谢 TrustedSec 开发了 CS-Situational-Awareness-BOF
下载工具