Pular para o conteúdo
Novo

DeepSeek V4.1 Flash grátis por 7 dias: 10M tokens por dia após recarga de $10 ou mais. Até 30/11.

Como funciona
aeondave/bof-devPesquisa de bypass e evasão

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 instalações+3 em 7 dias39 Estrelassincronizado há 10 horas

Instalar

Ainda não tem a CLI da NotHoly? Instale primeiro.

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

Grava em ⁦~/.notholy/skills⁩ depois de conferir a assinatura e o SHA-256.

AssinaturaAssinado, ed25519
reJDd5FSBc…JC2yzsBA==A CLI confere o SHA-256 e a assinatura antes de gravar qualquer arquivo.
Pacote6180a1fd…9d05d3e9
6180a1fd1c71…eda19d05d3e97 arquivos · ⁦10.7 KB⁩
VarreduraMédio3 achados
  • injection.no_confirmationreferences/coff-loader-hardening.md:7
  • Nenhuma licença encontrada
  • Links para domínios externos
Ver a varredura completa
Fontegithub.com/AeonDave/malskill/tree/main/offensive-coding/bof-dev@21cd568

Este item ainda não foi escrito no seu idioma, então aparece em 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.

Arquivos desta versão

Permissões

PermissãoDeclaradaEncontrada na varredura
Lê arquivosNãoNão
Grava arquivosNãoNão
Roda comandos no shellSimSim
Usa a redeSimSim
Usa conectoresNãoNão
Controla um navegadorNãoNão

Achados da varredura

Revisado em 13 de nov. de 2026

  1. MédiaPrompt injection · injection.no_confirmationreferences/coff-loader-hardening.md:7
  2. MédiaLicença · Nenhuma licença encontrada
  3. InfoLink · Links para domínios externos

Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.

VersãoPublicada emCommitSHA-256AssinaturaMudança de permissão
v2026.11.13-21cd56813 de nov. de 202621cd5686180a1fdAssinada–

Pergunte tudo o que o seu escopo permite.

Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.

  1. 1/3

    Crie a conta

    Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.

    Pessoa físicaEmpresa
  2. 2/3

    Adicione créditos

    No cartão. Você paga por token, sem assinatura.

    $5.00recarga mínima
  3. 3/3

    Pergunte

    No chat, ou instale o CLI e rode notholy login no terminal.

    $ notholy login