options

package
v0.0.0-...-eb5b8de Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Band2Rate

func Band2Rate(bandWith string) int64

func DnsType

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

func GetDeviceConfig

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
	ResultHandle     handle.Handle
}

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