scanner

package
v0.0.0-...-509a8f4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotSupportProtocol = "protocol is not support"
)

Variables

View Source
var CDNCheck = false
View Source
var DomainDatabase = sync.Map{}

Functions

This section is empty.

Types

type Banner struct {
	Header   string
	Body     string
	Response string
	Cert     string
	Title    string
	Hash     string
	Icon     string
}

type Config

type Config struct {
	DeepInspection bool
	Timeout        time.Duration
	Threads        int
	Interval       time.Duration

	HostDiscoverClosed bool
}

func DefaultConfig

func DefaultConfig() *Config

type DomainClient

type DomainClient struct {
	HandlerIsCDN  func(domain, CDNInfo string)
	HandlerRealIP func(domain string, ip net.IP)
	HandlerError  func(domain string, err error)
	// contains filtered or unexported fields
}

func NewDomainScanner

func NewDomainScanner(config *Config) *DomainClient

func (DomainClient) Defer

func (c DomainClient) Defer(f func())

func (DomainClient) IsDone

func (c DomainClient) IsDone() bool

func (*DomainClient) Push

func (c *DomainClient) Push(domain string)

func (DomainClient) Run

func (c DomainClient) Run()

func (DomainClient) RunningThreads

func (c DomainClient) RunningThreads() int

func (DomainClient) Start

func (c DomainClient) Start()

func (DomainClient) Stop

func (c DomainClient) Stop()

type FingerPrint

type FingerPrint struct {
	ProductName []string
	Hostname    string
	Domain      string
	MACAddr     string
}

type HydraClient

type HydraClient struct {
	HandlerSuccess func(addr net.IP, port int, protocol string, auth *hydra.Auth)
	HandlerError   func(addr net.IP, port int, protocol string, err error)
	// contains filtered or unexported fields
}

func NewHydraScanner

func NewHydraScanner(config *Config) *HydraClient

func (HydraClient) Defer

func (c HydraClient) Defer(f func())

func (HydraClient) IsDone

func (c HydraClient) IsDone() bool

func (*HydraClient) Push

func (c *HydraClient) Push(addr net.IP, port int, protocol string)

func (HydraClient) Run

func (c HydraClient) Run()

func (HydraClient) RunningThreads

func (c HydraClient) RunningThreads() int

func (HydraClient) Start

func (c HydraClient) Start()

func (HydraClient) Stop

func (c HydraClient) Stop()

type IPClient

type IPClient struct {
	HandlerAlive func(addr net.IP)
	HandlerDie   func(addr net.IP)
	HandlerError func(addr net.IP, err error)
	// contains filtered or unexported fields
}

func NewIPScanner

func NewIPScanner(config *Config) *IPClient

func (IPClient) Defer

func (c IPClient) Defer(f func())

func (IPClient) IsDone

func (c IPClient) IsDone() bool

func (*IPClient) Push

func (c *IPClient) Push(ips ...net.IP)

func (IPClient) Run

func (c IPClient) Run()

func (IPClient) RunningThreads

func (c IPClient) RunningThreads() int

func (IPClient) Start

func (c IPClient) Start()

func (IPClient) Stop

func (c IPClient) Stop()

type PortClient

type PortClient struct {
	HandlerClosed     func(addr net.IP, port int)
	HandlerOpen       func(addr net.IP, port int)
	HandlerNotMatched func(addr net.IP, port int, response string)
	HandlerMatched    func(addr net.IP, port int, response *gonmap.Response)
	HandlerError      func(addr net.IP, port int, err error)
	// contains filtered or unexported fields
}

func NewPortScanner

func NewPortScanner(config *Config) *PortClient

func (PortClient) Defer

func (c PortClient) Defer(f func())

func (PortClient) IsDone

func (c PortClient) IsDone() bool

func (*PortClient) Push

func (c *PortClient) Push(ip net.IP, num int)

func (PortClient) Run

func (c PortClient) Run()

func (PortClient) RunningThreads

func (c PortClient) RunningThreads() int

func (PortClient) Start

func (c PortClient) Start()

func (PortClient) Stop

func (c PortClient) Stop()

type URLClient

type URLClient struct {
	HandlerMatched func(url *url.URL, banner *appfinger.Banner, finger *appfinger.FingerPrint)
	HandlerError   func(url *url.URL, err error)
	// contains filtered or unexported fields
}

func NewURLScanner

func NewURLScanner(config *Config) *URLClient

func (URLClient) Defer

func (c URLClient) Defer(f func())

func (URLClient) IsDone

func (c URLClient) IsDone() bool

func (*URLClient) Push

func (c *URLClient) Push(URL *url.URL, response *gonmap.Response, req *http.Request, client *http.Client)

func (URLClient) Run

func (c URLClient) Run()

func (URLClient) RunningThreads

func (c URLClient) RunningThreads() int

func (URLClient) Start

func (c URLClient) Start()

func (URLClient) Stop

func (c URLClient) Stop()

Jump to

Keyboard shortcuts

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