scan

package
v0.0.0-nightly.20260708 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateStructuredResult

func AggregateStructuredResult(result *output.Result) []output.Asset

func FilterAutoSkill

func FilterAutoSkill(selected []string, command string) []string

func FormatAgentTaskPrompt

func FormatAgentTaskPrompt(scannerArgs []string, intent string) string

func ObservationToRecord

func ObservationToRecord(obs pipeline.Observation) *output.Record

func RegisterCapabilityBuilder

func RegisterCapabilityBuilder(fn CapabilityBuilder)

RegisterCapabilityBuilder adds an optional capability builder that will be invoked during buildCapabilities. Intended for build-tagged init() calls.

func RegisterProfileExtender

func RegisterProfileExtender(fn ProfileExtender)

RegisterProfileExtender adds a profile extender called during profileForMode.

func ScannerSkillName

func ScannerSkillName(command string) string

func Usage

func Usage() string

Types

type CapabilityBuilder

type CapabilityBuilder func(c *Command, flags flags, opts scanOptions, profile profile) []pipeline.Capability

CapabilityBuilder builds additional pipeline capabilities for a given profile. Build-tagged packages (e.g. katana) register builders via init() so the scan pipeline gains optional capabilities without the core scan package importing them.

type Command

type Command struct {
	toolargs.Base
	// contains filtered or unexported fields
}

func New

func New(engineSet *engine.Set, opts ...Option) *Command

func (*Command) Configure

func (c *Command) Configure(opts ...Option)

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, args []string) error

func (*Command) ExecuteStructured

func (c *Command) ExecuteStructured(ctx context.Context, args []string, stream io.Writer) (string, *output.Result, error)

func (*Command) Name

func (c *Command) Name() string

func (*Command) Usage

func (c *Command) Usage() string

type DeepBrowserFunc

type DeepBrowserFunc func(ctx context.Context, targetURL string) (string, error)

type Option

type Option func(*Command)

func WithDeepBrowserFunc

func WithDeepBrowserFunc(fn DeepBrowserFunc) Option

func WithLogger

func WithLogger(logger telemetry.Logger) Option

func WithParent

func WithParent(a *agent.Agent) Option

func WithProxy

func WithProxy(proxy string) Option

func WithSkillReader

func WithSkillReader(r SkillReader) Option

type ProfileExtender

type ProfileExtender func(mode string, p *profile)

ProfileExtender modifies a profile's capability set for a given mode. Build-tagged packages register extenders to add optional capability names.

type ServiceResult

type ServiceResult = parsers.GOGOResult

type SkillReader

type SkillReader func(name string) string

SkillReader reads a scan sub-skill by name (e.g. "verify", "sniper", "deep"). Returns the skill content or "" if not found.

type SprayResult

type SprayResult = parsers.SprayResult

type VulnResult

type VulnResult = sdktypes.VulnResult

type ZombieResult

type ZombieResult = parsers.ZombieResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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