Home

Awesome

BOF-Builder

C# .Net 5.0 project to build BOF (Beacon Object Files) in mass based on them all being in a folder directory struct somewhere.

Useful for building and I guess 'testing if they compile' BOF locally or in a pipeline ;)

Pre Req/ Install these first

How to Use

Run tool from 'x64 Native Tools Command Prompt for VS 2019' (if your goal is to build x64)

It runs like this from cmd.exe (or powershell)(Adjust for VS {VERSION/Year}) %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

Its normally got a short cut here C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools\VC

Its normally got a bat file C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build

Usage

Example: BuildBOFs.exe -rootdir C:\Path\to\BOFs

Commands:
-rootdir
    The folder that contains the BOF files to build (REQUIRED)
-x86
    Tell to compile linux bins for x86 (i686-w64-mingw32-gcc)
-x64
    Tell to compile linux bins for x64 (86_64-w64-mingw32-gcc) (DEFAULT)
-timeout
    Sets the timeout for the process who is building bin (DEFAULT 3 seconds) (time in milliseconds)
-wsl
    Tell app to use wsl.exe instead of bash.exe to compile linux bins

Errors/ My stuff wont build

Things to know