runner

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 24 Imported by: ? 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

View Source
var ErrNotProbed = errors.New("0 hosts probed")

ErrNotProbed indicates a query matched zero rows because stored hosts have not been probed yet.

Functions

func ParseOptions

func ParseOptions() *types.Options

ParseOptions parses command line flags and returns Options.

func PrintTargetSummary added in v1.1.0

func PrintTargetSummary(w io.Writer, root string, hosts []types.Host, sourceStats ...types.SourceStat)

PrintTargetSummary writes a structured, headless terminal dossier for a target domain.

func RunServer added in v1.1.0

func RunServer(ctx context.Context, dbStore *store.Store, listenAddr string) error

RunServer starts an HTTP dashboard server serving the HTML report and API on a headless VPS.

Types

type ExitError added in v1.4.0

type ExitError struct {
	Code int
	Err  error
}

ExitError carries a specific process exit code for CLI callers.

func (*ExitError) Error added in v1.4.0

func (e *ExitError) Error() string

func (*ExitError) Unwrap added in v1.4.0

func (e *ExitError) Unwrap() error

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner manages the lifecycle and execution of assfin tasks.

func NewRunner

func NewRunner(options *types.Options) (*Runner, error)

NewRunner creates a new assfin runner instance using manual constructor injection.

func (*Runner) Close

func (r *Runner) Close() error

Close cleans up any open resources such as database connections.

func (*Runner) ExecuteQuery

func (r *Runner) ExecuteQuery(ctx context.Context) error

ExecuteQuery queries the database with filtering and outputs results.

func (*Runner) ExecuteReport

func (r *Runner) ExecuteReport(ctx context.Context) error

ExecuteReport generates an HTML report.

func (*Runner) ExecuteScan

func (r *Runner) ExecuteScan(ctx context.Context) error

ExecuteScan executes subdomain discovery and HTTP probing.

func (*Runner) ExecuteServe added in v1.1.0

func (r *Runner) ExecuteServe(ctx context.Context) error

ExecuteServe starts the dashboard web server on the specified port.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run dispatches execution to the corresponding command handler.

Jump to

Keyboard shortcuts

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