result

package
v0.0.0-...-a91c65e Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Packge result contains the types used to represent the finshed evaluation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Ip    string   // IP address of the host
	Dns   string   // Reverse DNS name of the host
	Ports []Port   // Available ports
	Tags  []string // Tags of the host
}

Host scan result

func (Host) Inside

func (host Host) Inside(list []string) bool

Check if host matches Ip, DNS or Tag within supplied list

type Port

type Port struct {
	Number      int             // Numeric port representation
	Version     string          // Optional, version string if discovered
	State       string          // State of port either open, closed or filtered
	Name        string          // Name according to /etc/services
	RuleResults map[string]bool // Rule evaluation results
	ServiceId   string          // Discovered ServiceID from catalog
}

Port represents a discovered port on a scanned host

type ResultHosts

type ResultHosts []Host

Array of scan results

func (ResultHosts) PrintOpenPorts

func (results ResultHosts) PrintOpenPorts()

Jump to

Keyboard shortcuts

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