attacks

package
v0.0.0-...-1e0e3aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAll

func LoadAll(categories []string, skipBuiltin bool, extraDirs []string) ([]models.AttackCase, error)

LoadAll returns built-in attacks (unless skipBuiltin) plus every YAML file under extraDirs (recursive). categories filters by YAML file stem for both built-in and on-disk packs.

func LoadBuiltIn

func LoadBuiltIn(categories []string) ([]models.AttackCase, error)

LoadBuiltIn returns all attack cases from the embedded library, optionally filtered by category name (file stem).

func LoadDirectory

func LoadDirectory(dir string, categories []string) ([]models.AttackCase, error)

LoadDirectory walks dir recursively for *.yaml / *.yml. If categories is non-empty, only files whose stem (basename without extension) is in the set are loaded (same rule as built-in library).

func ParseAttackYAML

func ParseAttackYAML(raw []byte, idPrefix string) ([]models.AttackCase, error)

ParseAttackYAML parses a single attack pack file and assigns IDs using idPrefix (usually file stem).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL