fingerprint

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package fingerprint provides OS detection via TCP/IP stack analysis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceType

func DeviceType(openPorts []int) string

DeviceType attempts to classify the device type based on open ports.

Types

type OSGuess

type OSGuess struct {
	OS         string
	Confidence int // 0-100
	TTL        int
	Method     string
}

OSGuess represents an OS detection result.

func DetectByTTL

func DetectByTTL(host string, timeout time.Duration) (*OSGuess, error)

DetectByTTL performs basic OS detection by analyzing the initial TTL value. This is a passive/lightweight approach based on the ICMP or TCP response TTL.

Jump to

Keyboard shortcuts

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