Documentation
¶
Overview ¶
Package recipe is a CyberChef-style operation pipeline for RF payloads. A recipe is an ordered list of steps; each step is either a TRANSFORM (it rewrites the working buffer — XOR, a cipher decrypt, a bit reversal, a spectral inversion) or an ANALYSIS (it measures the current buffer — entropy, randomness — without changing it). The bytes flow from one step to the next, so an analyst can encode the de-obfuscation sequence they repeat by hand (e.g. hex-decode → xor → stats → randomness) as a single reusable artifact.
The transform ops reuse the toolkit's existing engines (p25crypto for the real ADP/DES/3DES/AES ciphers, voice for spectral inversion, stats and randomness for the analyses), so the pipeline composes the same primitives the standalone tools expose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpParam ¶
type OpParam struct {
Name string `json:"name"`
Label string `json:"label"`
Kind string `json:"kind"` // hex | int
Help string `json:"help,omitempty"`
}
OpParam describes one parameter of an operation, enough for the web recipe builder to render an input control.
type OpSpec ¶
type OpSpec struct {
Name string `json:"name"`
Synopsis string `json:"synopsis"`
Transform bool `json:"transform"`
External bool `json:"external,omitempty"`
Params []OpParam `json:"params,omitempty"`
}
OpSpec is the full, web-facing description of one operation.
type Report ¶
type Report struct {
InputBytes int `json:"input_bytes"`
Steps []StepResult `json:"steps"`
FinalBytes []byte `json:"-"`
FinalHex string `json:"final_hex"`
FinalASCII string `json:"final_ascii"`
}
Report is the pipeline outcome.