subdomain

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FakeDomain    = "venus-test-dns-a.venus.com"
	FakeSubdomain = "venus-test-dns-a"
	BaiduDNS      = "public-dns-a.baidu.com"
	BaiduIP       = "180.76.76.76"

	DefaultResolvers = []string{
		"114.114.114.114:53",
		"223.5.5.5:53",
		"180.76.76.76:53",
		"119.29.29.29:53",
		"182.254.118.118:53",
		"1.1.1.1:53",
		"1.0.0.1:53",
		"8.8.8.8:53",
		"8.8.4.4:53",
		"9.9.9.9:53",
		"9.9.9.10:53",
		"77.88.8.8:53",
		"77.88.8.1:53",
		"208.67.222.222:53",
		"208.67.220.220:53",
	}

	DefaultReadDictRateTime = 100

	SubNameTempFile = "venus-subname-temp-*"
)

Functions

This section is empty.

Types

type SubDomain

type SubDomain struct {
	WildcardIps      setutil.Set[netip.Addr]
	BlacklistedIps   setutil.Set[string]
	ResultSubdomains sliceutil.SafeSlice

	DictChan chan string

	Dict string
	// contains filtered or unexported fields
}

func NewSuDomain

func NewSuDomain(dict string, timeout, ratelimit int) (*SubDomain, error)

func (*SubDomain) DetectWildcardParse

func (s *SubDomain) DetectWildcardParse(domain string) error

func (*SubDomain) DictList

func (s *SubDomain) DictList() error

func (*SubDomain) DnsLookupRandomResolver

func (s *SubDomain) DnsLookupRandomResolver(domain string) ([]netip.Addr, error)

func (*SubDomain) PavoConfigName

func (s *SubDomain) PavoConfigName() string

func (*SubDomain) PavoSubdomain

func (s *SubDomain) PavoSubdomain(domain string) ([]string, error)

func (*SubDomain) PreprocessDict

func (s *SubDomain) PreprocessDict() (err error)

Jump to

Keyboard shortcuts

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