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 installazioni+3 in 7 giorni39 Stellesincronizzato 10 ore fa
Installa
Non hai ancora la CLI di NotHoly? Installala prima.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/bof-devScrive in ~/.notholy/skills dopo aver controllato la firma e lo SHA-256.
FirmaFirmato, ed25519
Pacchetto6180a1fd…9d05d3e9
6180a1fd1c71…eda19d05d3e97 file · 10.7 KBScansioneMedio3 segnalazioni
- injection.no_confirmationreferences/coff-loader-hardening.md:7
- Nessuna licenza trovata
- Link a domini esterni
Sorgentegithub.com/AeonDave/malskill/tree/main/offensive-coding/bof-dev@21cd568
Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.
In questa pagina
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
- No Standard Library / Runtime: No
printf,malloc,new,std::string,try/catch. - DFR (Dynamic Function Resolution): You must declare
DECLSPEC_IMPORTand useKERNEL32$VirtualAllocformat so the loader can resolve Win32 APIs statically. Do not link againstkernel32.lib. - 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. - C++ Specifics: Strip all C++ features that require runtime support. Disable RTTI (
-fno-rtti) and exceptions (-fno-exceptions). The entry pointgomust be declaredextern "C". - Memory Safety: You are executing inside the C2 agent's process. A segfault kills the payload. Check all pointers. Use
BeaconPrintffor output.
Framework Constraints (Mingw-w64)
# 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-tablesReferences
- 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.
File di questa versione
assets/320.7 KB
- beacon_compatibility.h833 B
- beacon.h16.3 KB
- bof_helpers.hpp3.6 KB
references/37.6 KB
- anti-patterns.md1.5 KB
- coff-loader-hardening.md4.7 KB
- dfr-strategies.md1.3 KB
- SKILL.md2.4 KB
Permessi
| Permesso | Dichiarato | Trovato dalla scansione |
|---|---|---|
| Legge file | No | No |
| Scrive file | No | No |
| Esegue comandi shell | Sì | Sì |
| Usa la rete | Sì | Sì |
| Usa i connettori | No | No |
| Controlla un browser | No | No |
Segnalazioni della scansione
Rivisto il 13 nov 2026
- MediaPrompt injection · injection.no_confirmationreferences/coff-loader-hardening.md:7
- MediaLicenza · Nessuna licenza trovata
- InfoLink · Link a domini esterni
Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.
| Versione | Pubblicata | Commit | SHA-256 | Firma | Cambio di permessi |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 nov 2026 | 21cd568 | 6180a1fd | Firmata | – |
Altro da AeonDave
Tutto da questo editoreAltro in Ricerca su bypass ed evasione
Vai alla categoria- uac-evasion-devaeondave/uac-evasion-dev3
- edr-evasion-devaeondave/edr-evasion-dev3
- asm-offensive-patternsaeondave/asm-offensive-patterns3
- performing-content-security-policy-bypassmukul975/performing-content-security-policy-bypass3
- hunting-for-defense-evasion-via-timestompingmukul975/hunting-for-defense-evasion-via-timestomping3
- detecting-t1003-credential-dumping-with-edrmukul975/detecting-t1003-credential-dumping-with-edr3
Chiedi tutto quello che il tuo perimetro consente.
Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.
- 1/3
Crea l'account
Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.
PrivatoAzienda - 2/3
Aggiungi crediti
Con carta. Paghi a token, senza abbonamento.
$5.00ricarica minima - 3/3
Chiedi
In chat, oppure installa la CLI ed esegui notholy login nel terminale.
$ notholy login