Перейти к содержимому
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/bof-devИсследование обходов и уклонения

bof-dev

⁨BOF (Beacon Object File) engineering for C and C++. DFR (Dynamic Function Resolution), linker limits, runtime safety, and COFF constraints.⁩

v2026.11.13-21cd5683 установки+3 за 7 дней39 Звездысинхронизировано 10 часов назад

Установка

Ещё нет NotHoly CLI? Сначала установите её.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/bof-dev

Пишет в ⁦~/.notholy/skills⁩ после проверки подписи и SHA-256.

ПодписьПодписано, ed25519
reJDd5FSBc…JC2yzsBA==CLI проверяет SHA-256 и подпись, прежде чем записать хоть один файл.
Пакет6180a1fd…9d05d3e9
6180a1fd1c71…eda19d05d3e97 файлов · ⁦10.7 KB⁩
ПроверкаСредний3 замечания
  • injection.no_confirmationreferences/coff-loader-hardening.md:7
  • Лицензия не найдена
  • Ссылки на внешние домены
Вся проверка
Источникgithub.com/AeonDave/malskill/tree/main/offensive-coding/bof-dev@21cd568

Эта запись еще не переведена на русский, поэтому показан текст на другом языке: English.

Goal: Write stealthy, production-ready Beacon Object Files (BOFs) in C or C++ for Cobalt Strike, Sliver, Havoc, or custom COFF loaders.

Cognitive Stance

A BOF is just an unlinked object file (.o / .obj). The loader maps sections into memory and links it at runtime. It has no OS loader, no runtime (CRT/STL), and exits via go().

Strict Rules

  1. No Standard Library / Runtime: No printf, malloc, new, std::string, try/catch.
  2. DFR (Dynamic Function Resolution): You must declare DECLSPEC_IMPORT and use KERNEL32$VirtualAlloc format so the loader can resolve Win32 APIs statically. Do not link against kernel32.lib.
  3. Global State: Global initialized variables (int x = 5;) are mapped but remain persistent across BOF executions in the same process. Use them cautiously. Global C++ constructors (Foo f;) will fail to link.
  4. C++ Specifics: Strip all C++ features that require runtime support. Disable RTTI (-fno-rtti) and exceptions (-fno-exceptions). The entry point go must be declared extern "C".
  5. Memory Safety: You are executing inside the C2 agent's process. A segfault kills the payload. Check all pointers. Use BeaconPrintf for output.

Framework Constraints (Mingw-w64)

bash
# Compilation for C — -mno-stack-arg-probe removes the __chkstk import,
# -fno-asynchronous-unwind-tables removes SEH unwind data
x86_64-w64-mingw32-gcc -c bof.c -o bof.o -Os \
  -mno-stack-arg-probe -fno-asynchronous-unwind-tables \
  -Wl,--exclude-libs,msvcrt.a

# Compilation for C++
x86_64-w64-mingw32-g++ -c bof.cpp -o bof.o -Os -fno-exceptions -fno-rtti -fno-threadsafe-statics \
  -mno-stack-arg-probe -fno-asynchronous-unwind-tables

References

  • references/dfr-strategies.md — Load when building Win32 API calls manually or fighting linker errors like __imp_.
  • references/anti-patterns.md — Load when troubleshooting BOF crashes or unexplained C2 disconnects.
  • references/coff-loader-hardening.md — Load when building or auditing a custom COFF loader: GOT dedup, thunk pages, VEH crash isolation, demand paging, idle masking, COFF obfuscation.

Файлы этой версии

Права

ПравоЗаявленоНайдено проверкой
Читает файлыНетНет
Пишет файлыНетНет
Выполняет команды shellДаДа
Ходит в сетьДаДа
Использует коннекторыНетНет
Управляет браузеромНетНет

Замечания проверки

Проверено 13 нояб. 2026 г.

  1. СредняяPrompt injection · injection.no_confirmationreferences/coff-loader-hardening.md:7
  2. СредняяЛицензия · Лицензия не найдена
  3. ИнфоСсылка · Ссылки на внешние домены

Чистая проверка снижает риск, но не доказывает, что пакет безопасен. Читайте то, что ставите.

ВерсияОпубликованаКоммитSHA-256ПодписьИзменение прав
v2026.11.13-21cd56813 нояб. 2026 г.21cd5686180a1fdПодписана–

Спрашивайте обо всём, что позволяет ваш скоуп.

Создайте аккаунт, пополните баланс и задайте первый вопрос в чате или в терминале.

  1. 1/3

    Создайте аккаунт

    Личный или для компании. Позже можно перейти на аккаунт компании без потери баланса и ключей.

    ЛичныйКомпания
  2. 2/3

    Пополните баланс

    Картой. Оплата за токены, без подписки.

    $5.00минимальное пополнение
  3. 3/3

    Спрашивайте

    В чате, или установите CLI и выполните notholy login в терминале.

    $ notholy login