gonmap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Closed     Status = 0x000a1
	Open              = 0x000b2
	Matched           = 0x000c3
	NotMatched        = 0x000d4
	Unknown           = 0x000e5
)

Variables

View Source
var MatchCount = 0
View Source
var ProbesCount = 0
View Source
var UsedMatchCount = 0
View Source
var UsedProbesCount = 0

Functions

func DnsScan

func DnsScan(host string, port int) bool

func FixProtocol

func FixProtocol(oldProtocol string) string

func GuessProtocol

func GuessProtocol(port int) string

func SetFilter

func SetFilter(filter int)

func SetLogger

func SetLogger(v Logger)

Types

type FingerPrint

type FingerPrint struct {
	ProbeName        string
	MatchRegexString string

	Service         string
	ProductName     string
	Version         string
	Info            string
	Hostname        string
	OperatingSystem string
	DeviceType      string
	CPE             string
}

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
	Println(v ...interface{})
}

type Nmap

type Nmap struct {
	// contains filtered or unexported fields
}

func New

func New() *Nmap

func (*Nmap) AddMatch

func (n *Nmap) AddMatch(probeName string, expr string)

func (*Nmap) OpenDeepIdentify

func (n *Nmap) OpenDeepIdentify()

func (*Nmap) Scan

func (n *Nmap) Scan(ip string, port int) (status Status, response *Response)

func (*Nmap) ScanTimeout

func (n *Nmap) ScanTimeout(ip string, port int, timeout time.Duration) (status Status, response *Response)

func (*Nmap) SetTimeout

func (n *Nmap) SetTimeout(timeout time.Duration)

type PortList

type PortList []int

type ProbeList

type ProbeList []string

type Response

type Response struct {
	Raw         string
	TLS         bool
	FingerPrint *FingerPrint
}

type Status

type Status int

func (Status) String

func (s Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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