Versions in this module Expand all Collapse all v1 v1.0.3 Nov 21, 2024 v1.0.2 Nov 20, 2024 Changes in this version + func InitGlobalScanner(configPath, pluginsDir string, enableGeo, enableCensys bool, ...) error + func MergeCensysData(node *Node, censysData *CensysHostResult) + func PrintResults(nodes []Node) error + func ScanTCPPort(ip string, port int) bool + func ScanUDPPort(ip string, port int) bool + type CensysCertificate struct + Fingerprint string + Issuer string + Subject string + type CensysClient struct + APIKey string + APISecret string + func NewCensysClient(apiKey, apiSecret string) *CensysClient + func (c *CensysClient) GetHostInfo(ip string) (*CensysHostResult, error) + type CensysHostResult struct + IP string + LastSeen time.Time + Location CensysLocation + Services []CensysService + type CensysLocation struct + City string + Coordinates struct{ ... } + Country string + type CensysService struct + Banner string + Certificate *CensysCertificate + Port int + ServiceName string + Transport string + type ClientConfig struct + DisableKeepAlives bool + IdleConnTimeout time.Duration + MaxConnsPerHost int + MaxIdleConns int + Timeout time.Duration + type Config struct + TCPPorts []int + UDPPorts []int + type ExprContext struct + Body string + Headers http.Header + StatusCode int + type Fingerprint struct + Body []string + Headers []string + IconMD5 []string + Manufacturer string + Ports []int + Type string + URL []string + type IPDetails struct + ASN uint + ASNOrg string + AccuracyRadius uint16 + City string + Continent string + ContinentCode string + Country string + CountryCode string + Domain string + ISP string + IsAnonymous bool + IsAnonymousVPN bool + IsHosting bool + IsProxy bool + IsTorExitNode bool + Latitude float64 + Longitude float64 + NetworkType string + PostalCode string + Region string + RegionCode string + TimeZone string + type IPInfo struct + func NewIPInfo(dbDir string) (*IPInfo, error) + func (i *IPInfo) Close() + func (i *IPInfo) GetIPInfo(ip string) (*IPDetails, error) + type Node struct + ASN uint + ASNOrg string + AccuracyDesc string + AccuracyRadius uint16 + City string + Continent string + ContinentCode string + Country string + CountryCode string + Devicetype string + Domain string + Hostname string + IP string + ISP string + IsAnonymous bool + IsAnonymousVPN bool + IsHosting bool + IsProxy bool + IsTorExitNode bool + Latitude float64 + Longitude float64 + MAC string + Manufacturer string + Model string + NetworkType string + OS string + Ports []*ServiceInfo + PortsHistory []*ServiceInfo + PortsHistoryDesc []string + PostalCode string + Region string + RegionCode string + SensitiveInfo []string + Tags []string + TimeZone string + Vulnerabilities []POCResult + type POC struct + CVEID string + Rules []Rule + Set map[string]string + Severity string + Type string + type POCContext struct + Matches map[string]string + Variables map[string]string + type POCExecutor struct + func NewPOCExecutor(client *http.Client) *POCExecutor + func (pe *POCExecutor) ExecutePOC(poc *POC, target string) POCResult + type POCResult struct + CVEID string + Severity string + Type string + type PortFingerprint struct + Devicetype string + Manufacturer string + OS string + Type string + type RawFingerprint struct + Devicetype string + Manufacturer string + Patterns []string + Type string + type Rule struct + Body string + Expression string + Headers map[string]string + Method string + Path string + Search string + SearchRegex string + type Scanner struct + func GetGlobalScanner() *Scanner + func NewScanner(configPath string, templatesDir string, enableGeo bool, enableCensys bool, ...) (*Scanner, error) + func (s *Scanner) Close() + func (s *Scanner) Scan(target string) ([]Node, error) + type ServiceAnalyzer interface + Analyze func(info ServiceInfo) ServiceInfo + type ServiceDetector struct + Fingerprints map[string]Fingerprint + PortFingerprints map[int]PortFingerprint + RawFingerprints map[string]RawFingerprint + func NewServiceDetector(templatesDir string) *ServiceDetector + func (sd *ServiceDetector) Close() + func (sd *ServiceDetector) DetectService(ip string, port int, protocol string) []ServiceInfo + type ServiceInfo struct + Banner string + Devicetype string + Extra map[string]string + Headers map[string]string + Manufacturer string + OS string + Port int + Protocol string + SensitiveInfo []string + TLS *TLSInfo + Title string + Types []string + Version string + Vulnerabilities []POCResult + type TLSInfo struct + Fingerprint string + Issuer string + Subject string v1.0.1 Nov 16, 2024 v1.0.0 Nov 16, 2024