internal/

directory
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package attack maps PromptZero tools and workflows to MITRE ATT&CK techniques.
Package attack maps PromptZero tools and workflows to MITRE ATT&CK techniques.
Package bruce interfaces with the Bruce pentesting firmware for ESP32-based boards over a USB-serial connection.
Package bruce interfaces with the Bruce pentesting firmware for ESP32-based boards over a USB-serial connection.
Package buspirate is the PromptZero backend for the Bus Pirate 5 universal bus probe (RP2040-based).
Package buspirate is the PromptZero backend for the Bus Pirate 5 universal bus probe (RP2040-based).
Package campaign implements the PromptZero Campaigns feature (roadmap P2-19) — declarative, YAML-authored multi-step engagement specs that compose the existing agent tool surface.
Package campaign implements the PromptZero Campaigns feature (roadmap P2-19) — declarative, YAML-authored multi-step engagement specs that compose the existing agent tool surface.
Package clisafe contains helpers shared by every transport that pushes operator-supplied strings through a line-oriented CLI.
Package clisafe contains helpers shared by every transport that pushes operator-supplied strings through a line-oriented CLI.
Package confidence provides pre-dispatch heuristic scoring for tool-use inputs.
Package confidence provides pre-dispatch heuristic scoring for tool-use inputs.
Package containerbridge runs external CLI tools inside Docker containers and surfaces their output as Go values.
Package containerbridge runs external CLI tools inside Docker containers and surfaces their output as Go values.
Package cost tracks Anthropic token usage and running dollar cost per PromptZero session, and implements the simple "consecutive errors → offline" heuristic that flips the observability offline banner.
Package cost tracks Anthropic token usage and running dollar cost per PromptZero session, and implements the simple "consecutive errors → offline" heuristic that flips the observability offline banner.
Package crypto1 is the pure-Go implementation of the Crypto1 stream cipher used by MIFARE Classic and some HID iCLASS legacy systems.
Package crypto1 is the pure-Go implementation of the Crypto1 stream cipher used by MIFARE Classic and some HID iCLASS legacy systems.
Package defense provides passive RF / BLE detection helpers used to surface adversarial activity nearby — the blue-team complement to PromptZero's offensive capability set.
Package defense provides passive RF / BLE detection helpers used to surface adversarial activity nearby — the blue-team complement to PromptZero's offensive capability set.
Package diff renders a `git diff --no-prefix`-style unified-diff string from two text inputs.
Package diff renders a `git diff --no-prefix`-style unified-diff string from two text inputs.
Package eval provides the PromptZero golden evaluation harness (roadmap P2-25).
Package eval provides the PromptZero golden evaluation harness (roadmap P2-25).
Package faultier drives a hextreeio Faultier USB voltage-glitcher via its serial bridge interface.
Package faultier drives a hextreeio Faultier USB voltage-glitcher via its serial bridge interface.
Package fileformat gives the PromptZero agent structural access to the Flipper file formats it already ships with — .sub, .nfc, .ir, .rfid.
Package fileformat gives the PromptZero agent structural access to the Flipper file formats it already ships with — .sub, .nfc, .ir, .rfid.
mock
Package mock provides a pty-backed fake Flipper CLI so serial.go and the command wrappers can be exercised without real hardware.
Package mock provides a pty-backed fake Flipper CLI so serial.go and the command wrappers can be exercised without real hardware.
rpc
Package rpc implements a typed Flipper Zero RPC client over a transport.Transport.
Package rpc implements a typed Flipper Zero RPC client over a transport.Transport.
transport
Package transport defines the byte-channel substrate the Flipper CLI layer operates over.
Package transport defines the byte-channel substrate the Flipper CLI layer operates over.
Package iclass implements the iCLASS block cipher and the loclass key-recovery attack against HID iCLASS Elite / High Security readers.
Package iclass implements the iCLASS block cipher and the loclass key-recovery attack against HID iCLASS Elite / High Security readers.
Package keeloq implements the KeeLoq block cipher and supporting primitives for sub-GHz rolling-code analysis.
Package keeloq implements the KeeLoq block cipher and supporting primitives for sub-GHz rolling-code analysis.
Package mcp exposes PromptZero's tool surface over the Model Context Protocol (stdio transport).
Package mcp exposes PromptZero's tool surface over the Model Context Protocol (stdio transport).
Package mcpfed federates external Model Context Protocol (MCP) servers as native PromptZero tools.
Package mcpfed federates external Model Context Protocol (MCP) servers as native PromptZero tools.
Package mode defines named operation profiles that constrain which tools the agent will dispatch.
Package mode defines named operation profiles that constrain which tools the agent will dispatch.
Package obs ("observability") is the cross-cutting layer that wires structured logging, Prometheus metrics, and the /debug snapshot view into the rest of PromptZero.
Package obs ("observability") is the cross-cutting layer that wires structured logging, Prometheus metrics, and the /debug snapshot view into the rest of PromptZero.
Package pcap implements a pure-Go libpcap classic-format writer and reader.
Package pcap implements a pure-Go libpcap classic-format writer and reader.
Package persona implements operator-mode profiles for PromptZero.
Package persona implements operator-mode profiles for PromptZero.
Package rag provides lexical retrieval over the bundled PromptZero documentation corpus.
Package rag provides lexical retrieval over the bundled PromptZero documentation corpus.
Package report renders engagement reports from PromptZero session audit data.
Package report renders engagement reports from PromptZero session audit data.
Package rules is PromptZero's reactive rules engine.
Package rules is PromptZero's reactive rules engine.
Package snapshot captures pre-write copies of Flipper SD files so /rewind can restore them on demand.
Package snapshot captures pre-write copies of Flipper SD files so /rewind can restore them on demand.
Package subghz provides pure-Go classifiers for common Sub-GHz radio protocols captured by the Flipper Zero.
Package subghz provides pure-Go classifiers for common Sub-GHz radio protocols captured by the Flipper Zero.
protocols
Package protocols implements pure-Go decoders for the top-20 Sub-GHz remote control protocols captured by the Flipper Zero.
Package protocols implements pure-Go decoders for the top-20 Sub-GHz remote control protocols captured by the Flipper Zero.
Package targetmem stores per-target facts across PromptZero sessions.
Package targetmem stores per-target facts across PromptZero sessions.
Package testmocks centralises the shared mock harness used across PromptZero's test surfaces — flipper-agent tests, end-to-end REPL tests, workflow tests.
Package testmocks centralises the shared mock harness used across PromptZero's test surfaces — flipper-agent tests, end-to-end REPL tests, workflow tests.
Package toolctx serves static per-tool cheat sheets the agent appends to tool descriptions at catalog registration time.
Package toolctx serves static per-tool cheat sheets the agent appends to tool descriptions at catalog registration time.
Package tools — argument-extraction helpers.
Package tools — argument-extraction helpers.
Package trainset exports the audit log as a fine-tuning dataset.
Package trainset exports the audit log as a fine-tuning dataset.
Package validator scans BadUSB/DuckyScript payloads for patterns that the operator would want to see before the Flipper types them on a real target.
Package validator scans BadUSB/DuckyScript payloads for patterns that the operator would want to see before the Flipper types them on a real target.
Package version carries build-time metadata embedded via -ldflags.
Package version carries build-time metadata embedded via -ldflags.
Package watch implements the --watch filesystem-trigger mode.
Package watch implements the --watch filesystem-trigger mode.
Package web serves the PromptZero browser UI and bridges the agent's streaming callbacks onto a WebSocket.
Package web serves the PromptZero browser UI and bridges the agent's streaming callbacks onto a WebSocket.
Package webhook dispatches PromptZero lifecycle events as outbound HTTP POSTs.
Package webhook dispatches PromptZero lifecycle events as outbound HTTP POSTs.
Package wordlists embeds PromptZero's built-in wordlists and exposes them as MCP resources via promptzero://wordlists/<name> URIs.
Package wordlists embeds PromptZero's built-in wordlists and exposes them as MCP resources via promptzero://wordlists/<name> URIs.
Package workflows implements composite pentest flows that orchestrate several Flipper primitives + LLM reasoning behind a single LLM-callable tool.
Package workflows implements composite pentest flows that orchestrate several Flipper primitives + LLM reasoning behind a single LLM-callable tool.

Jump to

Keyboard shortcuts

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