登录 注册
开发者工具安全与隐私工具AI 应用与 AI Agent adversarial-attacksadversary-simulationbeaconbeaconobjectfilebofc2
353
Stars
30
Forks
7
Watchers
11
Open Issues
NOASSERTION
许可证
Zig
语言
2023-03-31
创建时间
2026-10-29
最近更新

项目能做什么

支持在 Windows 和 Linux 上加载、执行及内存隐蔽 BOF 的 API,适用于各类植入体。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Introduction

[Cobalt Strike 4.1](https://www.cobaltstrike.com/blog/cobalt-strike-4-1-the-mark-of-injection/) released on 25 June 2020, introduced a novel (for that time) capability of running so called [Beacon Object Files](https://hstechdocs.helpsystems.com/manuals/cobaltstrike/current/userguide/content/topics/beacon-object-files_main.htm) - *small post-ex capabilities that execute in [Beacon](https://www.cobaltstrike.com/), parse arguments, call a few Win32 APIs, report output, and exit*. Since that time BOFs became very popular and the demand to launch/execute them in other environments than [Cobalt Strike's Beacon](https://www.cobaltstrike.com/) has emerged.

We at [Z-Labs](https://z-labs.eu) saw a big potential in BOFs and decided to extend its capabilities, versatility and usefulness even further. That's how the following projects came to live.

The repository provides:

1. [bof-launcher](#bof-launcher-library) - programming library for BOFs in-memory management (loading, keeping track of loaded BOFs, execution, masking).
2. [z-beac0n](#z-beac0n) - a custom-written stage-1 (aka pre-C2) solution featuring bof-launcher. Engineered with a small footprint, stealth and modularity in mind.
3. [Z-Labs BOFs collection](#z-Labs-bofs-collection) - growing collection of OS-specific and cross-platform BOFs for usage during a red team engagements.
4. ['bof' command line tool](examples/cli4bofs) - a swiss army knife tool for running, injecting and organizing your BOFs collection.

<br>

See [here](ROADMAP.md) for the project's ROADMAP.

See [here](#building-all-components) for the building instructions.

# bof-launcher library

<p align="center">
  <img src="https://github.com/The-Z-Labs/bof-launcher/assets/4785347/990ad1fb-c35b-48cf-a0db-aed3c825d149" width="192" height="192" />
</p>

BOF launcher library is the engine behind the [z-beac0n](examples/implant) adversary simulation toolkit. 

It is a standalone programming library implemented in Zig and C that can be used to execute BOFs. On Windows it support x86 and x86_64 architectures, on Linux x86, x86_64, ARMv6+ and AArch64 architectures are supported. The library exposes either [C API](bof-launcher/src/bof_launcher_api.h) and [Zig API](bof-launcher/src/bof_launcher_api.zig).

Library features:

- Capable of running [BOFs](https://hstechdocs.helpsystems.com/manuals/cobaltstrike/current/userguide/content/topics/beacon-object-files_main.htm) that adhere to [Windows BOF template](https://github.com/Cobalt-Strike/bof_template) and [Linux BOF template](https://github.com/outflanknl/nix_bof_template).
- Fully integrable with programs written in C/C++/Zig/Go or Rust. See [examples](examples/) for sample integrations.
- Adds capability to write BOFs in [Zig programming language](https://ziglang.org/) - which is a low-level language with a goal of being a "better C".
- Access to [rich std library](https://ziglang.org/documentation/0.15.2/std/) during BOF development: lists, hash maps, cross-platform OS lay
阅读完整原文

项目深度分析 AI 生成

商业级红队 C2 扩展 SDK 与定制集成授权

产品构想将 bof-launcher 包装为商业闭源或双重许可的嵌入式 SDK,提供更强免杀/规避特性(如高级 Call Stack 欺骗、syscall 混淆)及技术支持,供企业红队集成进自研 C2 中。
核心功能C/Rust/Go/Zig 开箱即用绑定、专有内存规避算法、针对主流 EDR 的定制对抗补丁、工单与架构集成支持。
目标用户拥有自研 C2 平台的专业红队团队、网络安全服务厂商、国家级演练防守/攻击队。
难度/周期高 · 2 - 3 个月 · 成本:开发机器、主流 EDR 测试环境订阅费用、反编译/逆向与测试开销。
收费模式按组织/团队收取年度商业授权许可费(License Seat)或单次源码买断支持费。
竞争风险合规与法律风险(武器化利用争议);需对客户做严格的 KYC (Know Your Customer) 资质审查;开源协议为 NOASSERTION 需先厘清自身 IP 权利。
依据 已验证事实

高级跨平台 BOF 武器库订阅服务 (Private BOF Feed)

产品构想基于 Zig 的跨平台优势,持续开发并维护高价值后渗透/提权/横向移动专用 BOF 插件,以订阅形式分发给订阅用户。
核心功能覆盖最新 Windows/Linux 内核提权的高性能 BOF、跨平台内存注入组件、月度更新且通过主流 AV/EDR 规避测试的二进制/源码包。
目标用户一线渗透测试工程师、高级红队操作员。
难度/周期中等 · 1 - 2 个月 · 成本:测试靶场与攻防实验室构建成本、研发时间投入。
收费模式月度/年度订阅制(Subscription/Sponsor 私有仓库访问权)。
竞争风险被公开泄漏导致签名失效的维护成本极高;平台运营存在被 GitHub 等托管平台风控下架风险。
依据 数据支持的判断

Zig 语言对抗性编程与免杀实战专栏/训练营

产品构想依托项目在 Zig 语言进行系统级底层攻防的先发优势,打造面向安全工程师的系统编程、BOF 开发与内存规避培训服务。
核心功能Zig 语言系统编程实战、COFF/ELF 文件格式深度解析、内存加解密与 Sleepmask 实现原理、自研 Pre-C2 架构拆解。
目标用户求职或转型的安全开发工程师、安全研究员、红队新手。
难度/周期低 · 1 个月 · 成本:课程录制剪辑软件、文档制作与宣发成本。
收费模式单套课程收费、小班化训练营学费或咨询辅导费。
竞争风险受众群体小众(Zig 在网安圈仍属于前沿探索阶段),流量转化率受限。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2023-03-31,近 30 天仍在推送
社区活跃Star 353 / Fork 30 / Issue 11(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。