fast_dns_search

package
v0.0.0-...-19f20a4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Api

func Api(domainStr string, ctx context.Context)

统一对外提供使用 API方法调用

Types

type DnsBlast

type DnsBlast struct {
	A          bool `是否获取A记录`
	Txt        bool `是否获取txt记录`
	Cname      bool `是否获取cname记录`
	Ip         bool `是否读取IP记录`
	LogFile    *go_hlog.Logger
	LogErrFile *go_hlog.Logger
	Domain     string
}

func NewDnsBlast

func NewDnsBlast(baseDomain string) *DnsBlast

设置要爆破的域名

func (*DnsBlast) ReadHostARecord

func (c *DnsBlast) ReadHostARecord(domain string)

读取A记录

func (*DnsBlast) ReadHostCnameRecord

func (c *DnsBlast) ReadHostCnameRecord(domain string)

读取CNAME记录

func (*DnsBlast) ReadHostIpRecord

func (c *DnsBlast) ReadHostIpRecord(domain string)

读取IP记录

func (*DnsBlast) ReadHostTxtRecord

func (c *DnsBlast) ReadHostTxtRecord(domain string)

读取TXT记录

func (*DnsBlast) Run

func (c *DnsBlast) Run(ctx context.Context)

执行

type DnsResult

type DnsResult struct {
	// contains filtered or unexported fields
}

func NewDnsResult

func NewDnsResult(logger *go_hlog.Logger) *DnsResult

func (*DnsResult) Save

func (c *DnsResult) Save(data DnsResultData)

type DnsResultData

type DnsResultData struct {
	BaseDomain string
	Domain     string
	Ip         []string
	Host       string
	IsOpen     bool   `是否可以打开`
	Type       string `结果类型: A\TXT\CNAME\IP`
}

Jump to

Keyboard shortcuts

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