Documentation
¶
Index ¶
- type Generator
- func (g *Generator) BadUSB(ctx context.Context, description string, targetOS string, ...) (*Result, error)
- func (g *Generator) Deploy(ctx context.Context, result *Result, path string) error
- func (g *Generator) EvilPortal(ctx context.Context, description string) (*Result, error)
- func (g *Generator) IR(ctx context.Context, description string) (*Result, error)
- func (g *Generator) NFC(ctx context.Context, description string) (*Result, error)
- func (g *Generator) SetFallback(p provider.Provider)
- func (g *Generator) SubGHz(ctx context.Context, description string) (*Result, error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator creates, validates, deploys, and runs payloads on the Flipper Zero.
func (*Generator) EvilPortal ¶
func (*Generator) SetFallback ¶ added in v0.20.0
SetFallback wires a secondary provider that's consulted when the primary returns text matching a canonical refusal pattern. Pass nil to disable. The fallback is typically a local Ollama instance for engagements where Anthropic policy refuses legitimate offensive payload synthesis.
type Result ¶
type Result struct {
Type string `json:"type"`
Content string `json:"content"`
Path string `json:"path"`
Deployed bool `json:"deployed"`
Preview string `json:"preview"`
// Provider names the LLM that served the request when a
// refusal-fallback fired. Empty when the primary provider
// generated the response (the common case).
Provider string `json:"provider,omitempty"`
}
Result of a generation operation.
Click to show internal directories.
Click to hide internal directories.