bin

package
v1.0.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0, ISC Imports: 34 Imported by: 1

Documentation

Overview

Package bin contains functions useful for creating a binary version of ZGrab2.

This package can import "github.com/zmap/zgrab2", and should be imported by targets within "github.com/zmap/zgrab2/cmd"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModuleSetWithDefaults added in v0.1.3

func NewModuleSetWithDefaults() zgrab2.ModuleSet

NewModuleSetWithDefaults returns a newly allocated ModuleSet containing all ScanModules implemented by the ZGrab2 framework.

func ZGrab2Main

func ZGrab2Main()

ZGrab2Main should be called by func main() in a binary. The caller is responsible for importing any modules in use. This allows clients to easily include custom sets of scan modules by creating new main packages with custom sets of ZGrab modules imported with side-effects.

Types

type Metadata added in v1.0.0

type Metadata struct {
	PerModuleMetadata map[string]*zgrab2.ModuleMetadata `json:"statuses"`
	StartTime         string                            `json:"start"`
	EndTime           string                            `json:"end"`
	Duration          string                            `json:"duration"`
	CLIInvocation     string                            `json:"zgrab_cli_parameters,omitempty"`
	NumTargetsScanned uint                              `json:"num_targets_scanned"`
}

Metadata holds the results of a run of a ZGrab2 binary.

Jump to

Keyboard shortcuts

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