跳到正文
FunCoding

oc2-bof-script-development

Use when writing Outflank C2 Python BOF wrappers for OC2 V2 (*_bof.s1.py, BaseBOFTask, outflank_stage1, stage1) or V3 (oc2_sdk_python, @command, manifest.json, command provider), when porting/migrating/converting a V2 BOF script to a V3 application, or when passing an existing @artifacts/ catalog file.

Star
748
许可证
Apache-2.0
最近提交
2026年11月6日

plugins/c2-outflankc2/skills/oc2-bof-script-development/SKILL.md

在 GitHub 上查看

Outflank C2 (OC2) BOF Python Script Development

Python wrappers expose a compiled Beacon Object File as an OC2 command (the OC2 equivalent of Cobalt Strike Aggressor Script). Use the c2-bof-development skill for the C/C++ object itself.

Note that OC2 version 3 is still in beta. Later release candidates may introduce breaking changes.

Route before writing code

First, determine whether the user is writing a V2 or V3 BOF. Do not always ask. Infer from evidence, then load the matching references:

  • V2: *_bof.s1.py, BaseBOFTask, outflank_stage1, or explicit OC2 2.x
  • V3: oc2_sdk_python, @command, or a V3 manifest.json
  • Port: user says port, migrate, or convert (also load the V3 refs)
  • No version clues: for a new wrapper, ask whether it targets V2 or V3. When modifying existing code, ask only if its version cannot be inferred.

When NOT to Use

Do not use this skill unless Outflank C2 support is requested, or BOF development is being completed and an OC2 Python script is required to load and execute the BOF.

References

Version 2

Version 3

Porting Version 2 scripts to Version 3

  • Porting cookbook — audit, hook map, side-by-side. Also load the V3 authoring and runtime refs.

相似的 Skill

精选

domain-modeling

编写词汇表,记录架构决策,澄清术语歧义。

MAmattpocock/skills336k近 7 天新增 4,217 个 star

writing-fragments

MAmattpocock/skills336k近 7 天新增 4,217 个 star

writing-shape

MAmattpocock/skills336k近 7 天新增 4,217 个 star

writing-beats

MAmattpocock/skills336k近 7 天新增 4,217 个 star

perfect-docs

MAmattpocock/skills336k近 7 天新增 4,217 个 star

writing-skills

OBobra/superpowers331k近 7 天新增 5,030 个 star