Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonPorts = []int{
21,
22,
25,
53,
80,
110,
143,
443,
465,
587,
993,
995,
3306,
5432,
6379,
8080,
8443,
9000,
11211,
}
CommonPorts defines the ports to scan
View Source
var DefaultProbeConfig = ProbeConfig{ TLSSkipVerify: true, DevMode: true, }
DefaultProbeConfig returns the default probe configuration Note: Service probing inherently requires InsecureSkipVerify to detect services with self-signed or invalid certificates
Functions ¶
This section is empty.
Types ¶
type ProbeConfig ¶ added in v1.10.0
type ProbeConfig struct {
// TLSSkipVerify allows skipping TLS verification during probes.
// This is only for service detection, not for establishing secure connections.
// Default: true (required for probing unknown services)
TLSSkipVerify bool
// DevMode enables less secure options. Must be true for TLSSkipVerify to work.
DevMode bool
}
ProbeConfig holds configuration for service probing
type ScanResult ¶
type ScanResult struct {
Services []Service
RuleCategories []string // Suricata rule categories to enable
}
ScanResult contains all detected services
func DeepScan ¶
func DeepScan(host string, ports []int) (*ScanResult, error)
DeepScan performs comprehensive service detection with protocol probes
func ScanLocalhost ¶
func ScanLocalhost() (*ScanResult, error)
ScanLocalhost scans localhost for running services
func (*ScanResult) GetServiceSummary ¶
func (sr *ScanResult) GetServiceSummary() string
GetServiceSummary returns a human-readable summary
Click to show internal directories.
Click to hide internal directories.