discover

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSInfo

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

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

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.

Types

type Report

type Report struct {
	Run    nmap.Run `json:"run" yaml:"run"`
	Errors []string `json:"errors" yaml:"errors"`
}

Report contains the results of an OS fingerprinting scan, including the nmap run results and any errors encountered during the process.

func RunOsFingerprint

func RunOsFingerprint(ctx context.Context, target string) (Report, error)

RunOsFingerprint performs OS fingerprinting on the specified target using nmap. It returns a report containing the detected operating system information and any errors encountered.

Directories

Path Synopsis
plugins

Jump to

Keyboard shortcuts

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