options

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Band2Rate

func Band2Rate(bandWith string) int64

func DnsType added in v1.9.3

func DnsType(s string) (layers.DNSType, error)

func GetDeviceConfig added in v1.9.3

func GetDeviceConfig() *device.EtherTable

func GetResolvers

func GetResolvers(resolvers string) []string

Types

type Options

type Options struct {
	Rate             int64              // 每秒发包速率
	Domain           chan string        // 域名输入
	DomainTotal      int                // 扫描域名总数
	Resolvers        []string           // dns resolvers
	Silent           bool               // 安静模式
	TimeOut          int                // 超时时间 单位(秒)
	Retry            int                // 最大重试次数
	Method           string             // verify模式 enum模式 test模式
	DnsType          string             // dns类型 a ns aaaa
	Writer           []outputter.Output // 输出结构
	ProcessBar       processbar.ProcessBar
	EtherInfo        *device.EtherTable  // 网卡信息
	SpecialResolvers map[string][]string // 可针对特定域名使用的dns resolvers
}

func (*Options) Check

func (opt *Options) Check()

Jump to

Keyboard shortcuts

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