/c2-extensions:c2-bof-developmentfrom c2-extensions
Guides creation, porting, and debugging of Beacon Object Files (BOFs) for C2 frameworks, covering API usage, DFR conventions, and compilation.
Ships in c2-extensions. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill when developing BOF files (Beacon Object Files):
boflint.pyDo not use this skill unless you are certain that you are creating a BOF file, or working on a BOF project.
LIBRARY$FunctionBOFs are compiled C/C++ object files that execute in-memory within a C2 implant's process space. They provide a way to add functionality without writing artifacts to disk.
Example BOF that queries the primary Domain Controller:
#include <windows.h>
#include <stdio.h>
#include <dsgetdc.h>
#include "beacon.h"
DECLSPEC_IMPORT DWORD WINAPI NETAPI32$DsGetDcNameA(LPVOID, LPVOID, LPVOID, LPVOID, ULONG, LPVOID);
DECLSPEC_IMPORT DWORD WINAPI NETAPI32$NetApiBufferFree(LPVOID);
void go(char * args, int alen) {
PDOMAIN_CONTROLLER_INFO pdcInfo;
DWORD dwRet = NETAPI32$DsGetDcNameA(NULL, NULL, NULL, NULL, 0, &pdcInfo);
if (ERROR_SUCCESS == dwRet) {
BeaconPrintf(CALLBACK_OUTPUT, "%s", pdcInfo->DomainName);
}
NETAPI32$NetApiBufferFree(pdcInfo);
}
Use the included linter to check BOF code for common issues:
python3 ~/.agents/skills/bof/scripts/boflint.py <bof_source.c>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub specterops/skills --plugin c2-extensions2 skills in this plugin
Other plugins' skills for the same job