scanner

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TargetURL    string
	Words        []string
	Threads      int
	Timeout      time.Duration
	UserAgent    string
	Extensions   []string
	Recursive    bool
	MaxDepth     int
	AddSlash     bool
	FilterCodes  []int
	ExcludeSizes []int64
	StatusCodes  []int
}

Config holds scanner configuration

type Engine

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

Engine is the main scanning engine - optimized for speed and accuracy

func NewEngine

func NewEngine(cfg *Config, writer *output.Writer) *Engine

NewEngine creates a new scanner engine

func (*Engine) PrintStats

func (e *Engine) PrintStats()

PrintStats prints final statistics

func (*Engine) Run

func (e *Engine) Run() error

Run starts the optimized 3-phase scanning process

func (*Engine) Stop

func (e *Engine) Stop()

Stop gracefully stops the scanner

type Job

type Job struct {
	URL   string
	Depth int
}

Job represents a scanning job

type Result

type Result struct {
	URL        string
	StatusCode int
	Size       int64
	BodyHash   string
	Depth      int
	Error      error
}

Result represents a scan result

Jump to

Keyboard shortcuts

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