Documentation
¶
Overview ¶
Package discover implements network discovery functionality for finding live hosts and services.
Package discover implements network discovery functionality for finding live hosts and services.
Package discover implements network discovery functionality for finding live hosts and services.
Package discover implements network discovery functionality for finding live hosts and services.
Package discover implements network discovery functionality for finding live hosts and services.
Index ¶
- func GetTLSInfo(ctx context.Context, addresses []string, config discoverfern.DiscoverTlsConfig) (discoverfern.DiscoverTlsReport, error)
- func RunHostDiscovery(ctx context.Context, target string, scantype discoverfern.HostScanType) (discoverfern.DiscoverHostReport, error)
- func RunPortScan(ctx context.Context, config discoverfern.DiscoverPortConfig) (*discoverfern.DiscoverPortReport, error)
- func RunServiceFingerprint(ctx context.Context, config discoverfern.DiscoverServiceConfig) (*discoverfern.DiscoverServiceReport, error)
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTLSInfo ¶
func GetTLSInfo(ctx context.Context, addresses []string, config discoverfern.DiscoverTlsConfig) (discoverfern.DiscoverTlsReport, error)
GetTLSInfo retrieves TLS configuration and certificate details for a list of target addresses. It establishes TLS connections to each target and extracts information about the TLS version, cipher suite, and certificates. Returns a report containing the TLS details and any errors encountered.
func RunHostDiscovery ¶
func RunHostDiscovery(ctx context.Context, target string, scantype discoverfern.HostScanType) (discoverfern.DiscoverHostReport, error)
RunHostDiscovery performs host discovery on the specified target using the given scan type. It returns a report containing discovered hosts and any errors encountered during the process. The target can be a single IP, hostname, or CIDR range.
func RunPortScan ¶
func RunPortScan(ctx context.Context, config discoverfern.DiscoverPortConfig) (*discoverfern.DiscoverPortReport, error)
RunPortScan performs a port scan on the specified target using the provided configuration. It returns a report containing discovered open ports and any errors encountered during the process.
func RunServiceFingerprint ¶
func RunServiceFingerprint(ctx context.Context, config discoverfern.DiscoverServiceConfig) (*discoverfern.DiscoverServiceReport, error)
RunServiceFingerprint performs service fingerprinting on the specified target and port. It uses the fingerprintx library to identify running services and their characteristics. Returns a report containing service details and any errors encountered during the process.