runner

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContext

func BuildContext(params sdk.Params, payloadCmd string) *sdk.Context

BuildContext creates a wired sdk.Context from params and payload command. Shared between the console and runner.

func RunSingle

func RunSingle(ctx context.Context, mod sdk.Exploit, params sdk.Params, opts RunOpts) error

RunSingle checks and/or exploits a single target.

Types

type Result

type Result struct {
	Target     string `json:"target"`
	Vulnerable bool   `json:"vulnerable"`
	Reason     string `json:"reason,omitempty"`
	Error      error  `json:"-"`
	ErrorStr   string `json:"error,omitempty"`
}

Result holds the outcome of scanning a single target.

type RunOpts

type RunOpts struct {
	CheckOnly bool
}

RunOpts configures runner behavior.

type Scanner

type Scanner struct {
	Module     sdk.Exploit
	Targets    []string
	Threads    int
	BaseParams sdk.Params
	OutputFile string
	JSONOutput bool
}

Scanner runs vulnerability checks against multiple targets concurrently.

func (*Scanner) Run

func (s *Scanner) Run(ctx context.Context) []Result

Run checks all targets and returns results.

Jump to

Keyboard shortcuts

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