dns

package
v0.0.0-...-ec228a3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsClient

type DnsClient struct {
	Server *string
}

func NewDnsClient

func NewDnsClient(server *string) *DnsClient

func (*DnsClient) GetARecord

func (c *DnsClient) GetARecord(domain string) ([]string, error)

func (*DnsClient) GetCNameRecord

func (c *DnsClient) GetCNameRecord(domain string) ([]string, error)

func (*DnsClient) LookupCName

func (c *DnsClient) LookupCName(fqdn string) []Result

Follows CName trail till ips are resolved

type DnsFuzzer

type DnsFuzzer struct {
	Server       *string
	Workers      *int
	WordlistPath *string
	// contains filtered or unexported fields
}

func NewDnsFuzzer

func NewDnsFuzzer(dnsServer string, workers int, wordlistPath string) *DnsFuzzer

func (*DnsFuzzer) PrintResults

func (c *DnsFuzzer) PrintResults(results []Result)

func (*DnsFuzzer) StartSubDomainFuzzer

func (c *DnsFuzzer) StartSubDomainFuzzer(domain string) ([]Result, error)

func (*DnsFuzzer) Worker

func (c *DnsFuzzer) Worker(tracker chan Empty, fqdns chan string, gather chan []Result)

type DnsProxy

type DnsProxy struct {
	ProxyConfig ProxiesConfig

	ListenAddr string

	DefaultDnsServerAddr string
	// contains filtered or unexported fields
}

func NewDnsProxy

func NewDnsProxy(filePath, listenAddr string, defaultDnsServerAddr string) (*DnsProxy, error)

func (*DnsProxy) ParseDnsProxiesFile

func (p *DnsProxy) ParseDnsProxiesFile(filename string) error

func (*DnsProxy) StartDnsProxy

func (p *DnsProxy) StartDnsProxy(network string)

type DnsServer

type DnsServer struct {
	Port *int
	Ip   *string
	// contains filtered or unexported fields
}

func NewDnsServer

func NewDnsServer(port int, ip string) *DnsServer

func (*DnsServer) StartDnsServer

func (s *DnsServer) StartDnsServer(network string)

type Empty

type Empty struct{}

type ProxiesConfig

type ProxiesConfig struct {
	Proxies []ProxyConfig `yaml:"proxies,omitempty"`
}

type ProxyConfig

type ProxyConfig struct {
	Host   string `yaml:"host"`
	Domain string `yaml:"domain"`
}

type Result

type Result struct {
	IpAddress string
	Hostname  string
}

func (*Result) Text

func (r *Result) Text() string

Jump to

Keyboard shortcuts

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