bin

package
v0.0.0-...-64a4400 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0, ISC Imports: 33 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModuleSetWithDefaults

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 Summary

type Summary struct {
	StatusesPerModule map[string]*zgrab2.State `json:"statuses"`
	StartTime         string                   `json:"start"`
	EndTime           string                   `json:"end"`
	Duration          string                   `json:"duration"`
}

Summary 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