Versions in this module Expand all Collapse all v0 v0.0.1 Jul 8, 2022 Changes in this version + var ErrScanTimeout = errors.New("zmap scan timed out") + var ErrZmapNotInstalled = errors.New("zmap binary was not found") + type AsyncScanner interface + AddOptions func(options ...Option) error + GetDebugMessages func() []LogLine + GetFatalMessages func() []LogLine + GetInfoMessages func() []LogLine + GetResults func() []map[string]interface{} + GetTraceMessages func() []LogLine + GetVersion func() (string, error) + GetWarningMessages func() []LogLine + ListOutputFields func() ([]OutputField, error) + ListOutputModules func() ([]string, error) + ListProbeModules func() ([]string, error) + RunAsync func() error + Wait func() error + func NewAsyncScanner(initOptions ...InitOption) (AsyncScanner, error) + type BandwidthUnit string + var UnitBandwidthBps BandwidthUnit = "B" + var UnitBandwidthGbps BandwidthUnit = "G" + var UnitBandwidthKbps BandwidthUnit = "K" + var UnitBandwidthMbps BandwidthUnit = "M" + type BlockingScanner interface + AddOptions func(options ...Option) error + GetVersion func() (string, error) + ListOutputFields func() ([]OutputField, error) + ListOutputModules func() ([]string, error) + ListProbeModules func() ([]string, error) + RunBlocking func() (results []map[string]interface{}, traces []LogLine, debugs []LogLine, ...) + func NewBlockingScanner(initOptions ...InitOption) (BlockingScanner, error) + type InitOption func(*scanner) error + func WithBinaryPath(binaryPath string) InitOption + func WithContext(ctx context.Context) InitOption + type LogLine struct + LogTime time.Time + LogType string + Message string + type Option func(*scanner) error + func WithBandwidth(bandwidth string, unit BandwidthUnit) Option + func WithBlacklistFile(blacklistFile string) Option + func WithConfigFile(configFile string) Option + func WithCooldownTime(cooldown string) Option + func WithCores(cores []string) Option + func WithCustomArguments(args ...string) Option + func WithDisableSyslog() Option + func WithDryrun() Option + func WithGatewayMAC(gatewayMAC string) Option + func WithIgnoreInvalidHosts() Option + func WithInterface(ifa string) Option + func WithLogDirectory(logDirectory string) Option + func WithLogFile(logFile string) Option + func WithMaxResults(maxResults string) Option + func WithMaxRetries(maxRetries string) Option + func WithMaxRuntime(maxRuntime string) Option + func WithMaxSendtoFailures(maxSendtoFailures string) Option + func WithMaxTargets(maxTarget string, isPercentage bool) Option + func WithMetadataFile(metadataFile string) Option + func WithMinHitrate(minHitrate string) Option + func WithNotes(notes string) Option + func WithNumberOfProbesPerIP(numberOfProbes string) Option + func WithOutputArgs(outputArgs string) Option + func WithOutputFields(fields []string) Option + func WithOutputFile(outputFile string) Option + func WithOutputFilter(outputFilter string) Option + func WithOutputModule(outputModule string) Option + func WithProbeArgs(probeArgs string) Option + func WithProbeModule(probeModule string) Option + func WithQuiet() Option + func WithRate(rate string) Option + func WithSeed(seed string) Option + func WithSenderThreads(senderThreads string) Option + func WithShardID(shardID string) Option + func WithSourceIP(sourceIP string) Option + func WithSourceMAC(sourceMAC string) Option + func WithSourcePort(sourcePort string) Option + func WithStatusUpdatesFile(statusUpdateFile string) Option + func WithTargetPort(targetPort string) Option + func WithTargets(targets ...string) Option + func WithTotalShards(shards string) Option + func WithUserMetadata(userMetadata string) Option + func WithVPN() Option + func WithVerbosity(verbosityLevel VerbosityLevel) Option + func WithWhitelistFile(whitelistFile string) Option + type OutputField struct + Explanation string + Name string + Type string + type VerbosityLevel string + var VerbosityLevel1 VerbosityLevel = "1" + var VerbosityLevel2 VerbosityLevel = "2" + var VerbosityLevel3 VerbosityLevel = "3" + var VerbosityLevel4 VerbosityLevel = "4" + var VerbosityLevel5 VerbosityLevel = "5"