joaoviictorti

A Rust template for writing Beacon Object Files (BOFs)

100
10
69% credibility
Found Feb 11, 2026 at 24 stars 4x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

Rustbof is a Rust framework for building small, efficient executable modules (BOFs) that integrate with Cobalt Strike Beacon for penetration testing and red teaming.

How It Works

1
🔍 Discover rustbof

You hear about rustbof, a handy kit that lets you create tiny custom helpers for security testing tools using safe and speedy Rust code.

2
📥 Grab the starter pack

You use the built-in template to instantly set up a new project folder with everything ready to go.

3
✏️ Write your custom helper

You add a simple function, like one that shows your username or lists network details, feeling empowered by the easy format.

4
🔨 Build your helper

You run the build process to turn your code into a small, ready-to-use file that works perfectly with your testing agent.

5
📤 Add to your testing tool

You place the tiny helper file into your security testing software where it waits to spring into action.

See it work!

You trigger your helper during a test, and it delivers exactly the info you need, right back to your screen.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 24 to 100 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is rustbof?

rustbof is a Rust crate and template library for building Beacon Object Files (BOFs), the tiny, no_std executables loaded into Cobalt Strike Beacons for post-exploitation tasks. It solves the pain of writing these in brittle C by providing Rust's safety, alloc support, and a simple attribute macro to generate the required "go" entry point. Developers get a cargo-generate template for instant projects, plus helpers for argument parsing, formatted output, file downloads, and token handling—all compiling to compact COFF objects via boflink.

Why is it gaining traction?

It stands out with ergonomic macros like println! that pipe straight to Beacon callbacks, plus a DataParser for pulling typed args from raw buffers, making prototypes fast without low-level pointer wrangling. The template integrates seamlessly with rust github actions cache, rust github ci, and rust github workflows for reproducible builds, including Docker and cross-compilation to x86/x64 Windows targets. Early rust github trending interest comes from its rust template metaprogramming for entry points and rust template function wrappers around Beacon APIs.

Who should use this?

Red team operators crafting custom BOFs for recon (like whoami, ipconfig) or evasion in Beacon implants. Pentesters ditching C for Rust's borrow checker to avoid memory bugs in high-stakes ops. Teams standardizing on rust github client dependencies for secure, audited payloads.

Verdict

Solid starter for Rust-savvy red teamers—grab the template, tweak examples, and ship via rust github actions. At 15 stars and 0.699999988079071% credibility score, it's immature with no tests shown, but docs and examples deliver immediate value; watch for maintenance.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.