core

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachexStep

type CachexStep struct{}

func (CachexStep) Enabled

func (CachexStep) Enabled(s *Scanner) bool

func (CachexStep) Fetch

func (CachexStep) Fetch(s *Scanner) ([]string, error)

func (CachexStep) Name

func (CachexStep) Name() string

func (CachexStep) RequiredTools

func (CachexStep) RequiredTools() []string

func (CachexStep) Run

func (CachexStep) Run(s *Scanner, httpServers []string) ([]string, error)

func (CachexStep) Store

func (CachexStep) Store(s *Scanner, out []string) error

type DnsxStep added in v0.7.2

type DnsxStep struct{}

func (DnsxStep) Enabled added in v0.7.2

func (DnsxStep) Enabled(s *Scanner) bool

func (DnsxStep) Fetch added in v0.7.2

func (DnsxStep) Fetch(s *Scanner) ([]string, error)

func (DnsxStep) Name added in v0.7.2

func (DnsxStep) Name() string

func (DnsxStep) RequiredTools added in v0.7.2

func (DnsxStep) RequiredTools() []string

func (DnsxStep) Run added in v0.7.2

func (DnsxStep) Run(s *Scanner, httpServers []string) ([]string, error)

func (DnsxStep) Store added in v0.7.2

func (DnsxStep) Store(s *Scanner, out []string) error

type GauStep

type GauStep struct{}

func (GauStep) Enabled

func (GauStep) Enabled(s *Scanner) bool

func (GauStep) Fetch

func (GauStep) Fetch(s *Scanner) ([]string, error)

func (GauStep) Name

func (GauStep) Name() string

func (GauStep) RequiredTools

func (GauStep) RequiredTools() []string

func (GauStep) Run

func (GauStep) Run(s *Scanner, rootDomain []string) ([]string, error)

func (GauStep) Store

func (GauStep) Store(s *Scanner, out []string) error

type HttpxStep

type HttpxStep struct{}

func (HttpxStep) Enabled

func (HttpxStep) Enabled(s *Scanner) bool

func (HttpxStep) Fetch

func (HttpxStep) Fetch(s *Scanner) ([]string, error)

func (HttpxStep) Name

func (HttpxStep) Name() string

func (HttpxStep) RequiredTools

func (HttpxStep) RequiredTools() []string

func (HttpxStep) Run

func (HttpxStep) Run(s *Scanner, subs []string) ([]string, error)

func (HttpxStep) Store

func (HttpxStep) Store(s *Scanner, out []string) error

type KatanaStep

type KatanaStep struct{}

func (KatanaStep) Enabled

func (KatanaStep) Enabled(s *Scanner) bool

func (KatanaStep) Fetch

func (KatanaStep) Fetch(s *Scanner) ([]string, error)

func (KatanaStep) Name

func (KatanaStep) Name() string

func (KatanaStep) RequiredTools

func (KatanaStep) RequiredTools() []string

func (KatanaStep) Run

func (KatanaStep) Run(s *Scanner, httpServers []string) ([]string, error)

func (KatanaStep) Store

func (KatanaStep) Store(s *Scanner, out []string) error

type NucleiCloudStep

type NucleiCloudStep struct{}

func (NucleiCloudStep) Enabled

func (NucleiCloudStep) Enabled(s *Scanner) bool

func (NucleiCloudStep) Fetch

func (NucleiCloudStep) Fetch(s *Scanner) ([]string, error)

func (NucleiCloudStep) Name

func (NucleiCloudStep) Name() string

func (NucleiCloudStep) RequiredTools

func (NucleiCloudStep) RequiredTools() []string

func (NucleiCloudStep) Run

func (NucleiCloudStep) Run(s *Scanner, input []string) ([]string, error)

func (NucleiCloudStep) Store

func (NucleiCloudStep) Store(s *Scanner, out []string) error

type NucleiDastStep

type NucleiDastStep struct{}

func (NucleiDastStep) Enabled

func (NucleiDastStep) Enabled(s *Scanner) bool

func (NucleiDastStep) Fetch

func (NucleiDastStep) Fetch(s *Scanner) ([]string, error)

func (NucleiDastStep) Name

func (NucleiDastStep) Name() string

func (NucleiDastStep) RequiredTools

func (NucleiDastStep) RequiredTools() []string

func (NucleiDastStep) Run

func (NucleiDastStep) Run(s *Scanner, input []string) ([]string, error)

func (NucleiDastStep) Store

func (NucleiDastStep) Store(s *Scanner, out []string) error

type NucleiGenericStep

type NucleiGenericStep struct{}

func (NucleiGenericStep) Enabled

func (NucleiGenericStep) Enabled(s *Scanner) bool

func (NucleiGenericStep) Fetch

func (NucleiGenericStep) Fetch(s *Scanner) ([]string, error)

func (NucleiGenericStep) Name

func (NucleiGenericStep) Name() string

func (NucleiGenericStep) RequiredTools

func (NucleiGenericStep) RequiredTools() []string

func (NucleiGenericStep) Run

func (NucleiGenericStep) Run(s *Scanner, input []string) ([]string, error)

func (NucleiGenericStep) Store

func (NucleiGenericStep) Store(s *Scanner, out []string) error

type PipelineStep

type PipelineStep struct {
	Step      ToolStep
	InputFrom []string
}

func SingleDomainPipeline

func SingleDomainPipeline() []PipelineStep

func WildCardDomainPipeline

func WildCardDomainPipeline() []PipelineStep

type ScanEventHandler

type ScanEventHandler interface {
	OnDomainScanned(out *ScannerOutput, errs []error)
}

type ScanMode

type ScanMode int

DbScanMode or ManualScanMode

const (
	DbScanMode ScanMode = iota
	ManualScanMode
)

type Scanner

type Scanner struct {
	InputDomains []string

	DBPath string

	ToolsCfg *config.ToolsConfig
	ScanMode ScanMode

	EventHandler ScanEventHandler

	DoSkipTimedOut bool
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(
	ToolsCfg *config.ToolsConfig,
	ReporterCfg *config.ReporterConfig,
	inputDomains []string,
	dbPath string,
	scanMode ScanMode,
	doSkipScanTimedOutTools bool,
) (*Scanner, error)

NewScanner creates and initializes a new Scanner instance.

func (*Scanner) Close

func (s *Scanner) Close() error

func (*Scanner) ExecStep

func (s *Scanner) ExecStep(step ToolStep, input []string) ([]string, error)

func (*Scanner) ScanDomains

func (s *Scanner) ScanDomains() error

ScanDomains scans all input domains based on the configured scan mode.

type ScannerOutput

type ScannerOutput struct {
	DomainScanned     string
	Subdomains        []string
	CachexResults     []string
	HttpServers       []string
	GauURLs           []string
	KatanaCrawledURLs []string
	NucleiFindings    []string
}

type SubfinderStep

type SubfinderStep struct{}

func (SubfinderStep) Enabled

func (SubfinderStep) Enabled(s *Scanner) bool

func (SubfinderStep) Fetch

func (SubfinderStep) Fetch(s *Scanner) ([]string, error)

func (SubfinderStep) Name

func (SubfinderStep) Name() string

func (SubfinderStep) RequiredTools

func (SubfinderStep) RequiredTools() []string

func (SubfinderStep) Run

func (SubfinderStep) Run(s *Scanner, rootDomain []string) ([]string, error)

func (SubfinderStep) Store

func (SubfinderStep) Store(s *Scanner, out []string) error

type ToolStep

type ToolStep interface {
	Name() string
	Enabled(*Scanner) bool
	RequiredTools() []string
	Run(*Scanner, []string) ([]string, error) // usually executes the cli.RunXXX function where XXX is replaced with the step tools
	Store(*Scanner, []string) error
	Fetch(*Scanner) ([]string, error)
}

type UroStep

type UroStep struct{}

func (UroStep) Enabled

func (UroStep) Enabled(s *Scanner) bool

func (UroStep) Fetch

func (UroStep) Fetch(s *Scanner) ([]string, error)

func (UroStep) Name

func (UroStep) Name() string

func (UroStep) RequiredTools

func (UroStep) RequiredTools() []string

func (UroStep) Run

func (UroStep) Run(s *Scanner, urls []string) ([]string, error)

func (UroStep) Store

func (UroStep) Store(s *Scanner, out []string) error

Jump to

Keyboard shortcuts

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