scanner

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

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

Functions

This section is empty.

Types

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

type Service

type Service struct {
	Port     int
	Protocol string // tcp/udp
	Name     string // http, https, ssh, mysql, dns, etc.
	Banner   string // Service banner/version if detected
}

Service represents a detected network service

func ProbeService

func ProbeService(host string, port int) (*Service, error)

ProbeService performs deep protocol detection on a service

Jump to

Keyboard shortcuts

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