check

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Scan(string)
	CreateReport(string) Report
}

type DNSSECCheck

type DNSSECCheck struct {
	NS     []structs.NSData
	DNSSEC []DNSSECCheckData
	Report
	// contains filtered or unexported fields
}

func NewDNSSEC

func NewDNSSEC(s *scan.Scan, ns []structs.NSData) *DNSSECCheck

func (*DNSSECCheck) CreateReport

func (c *DNSSECCheck) CreateReport(domain string) Report

func (*DNSSECCheck) Scan

func (c *DNSSECCheck) Scan(domain string)

func (*DNSSECCheck) Values

func (c *DNSSECCheck) Values() []ReportResult

type DNSSECCheckData

type DNSSECCheckData struct {
	Name  string
	IP    string
	Error string
	Valid bool
}

type DomainReport

type DomainReport struct {
	Name      string
	NSInfo    []structs.NSInfo
	Timestamp time.Time
	Report    []Report
	Scan      []scan.Response
}

type Glue

type Glue struct {
	NS []structs.NSData
	Report
	// contains filtered or unexported fields
}

func NewGlue

func NewGlue(s *scan.Scan, ns []structs.NSData) *Glue

func (*Glue) CheckParent

func (g *Glue) CheckParent(domain string) (bool, []string, error)

func (*Glue) CheckSelf

func (g *Glue) CheckSelf(domain string) (bool, []string, error)

func (*Glue) Compare

func (g *Glue) Compare(parentGlue []net.IP) (bool, []string)

func (*Glue) CreateReport

func (g *Glue) CreateReport(domain string) Report

func (*Glue) Scan

func (g *Glue) Scan(domain string)

type MXCheck

type MXCheck struct {
	NS     []structs.NSData
	MX     []MXData
	MXIP   map[string][]net.IP // cache mx ip records
	MXIPRR map[string][]dns.RR // cache raw A/AAAA responses so we can extract CNAMEs if needed
	Report
	// contains filtered or unexported fields
}

func NewMX

func NewMX(s *scan.Scan, ns []structs.NSData) *MXCheck

func (*MXCheck) CheckCNAME

func (c *MXCheck) CheckCNAME() []ReportResult

func (*MXCheck) CheckReverse

func (c *MXCheck) CheckReverse() []ReportResult

func (*MXCheck) CreateReport

func (c *MXCheck) CreateReport(domain string) Report

func (*MXCheck) Identical

func (c *MXCheck) Identical() ReportResult

func (*MXCheck) Scan

func (c *MXCheck) Scan(domain string)

func (*MXCheck) Values

func (c *MXCheck) Values() []ReportResult

type MXData

type MXData struct {
	Name  string
	IP    string
	MX    []dns.RR
	Error string
}

type NSCheck

type NSCheck struct {
	NS      []structs.NSData
	NSCheck []NSCheckData
	CacheIP map[string][]net.IP
	Report
	// contains filtered or unexported fields
}

func NewNS

func NewNS(s *scan.Scan, ns []structs.NSData) *NSCheck

func (*NSCheck) ASN

func (c *NSCheck) ASN() ReportResult

func (*NSCheck) Auth

func (c *NSCheck) Auth() []ReportResult

func (*NSCheck) CheckCNAME

func (c *NSCheck) CheckCNAME() []ReportResult

func (*NSCheck) CheckParent

func (c *NSCheck) CheckParent(domain string) []ReportResult

func (*NSCheck) CreateReport

func (c *NSCheck) CreateReport(domain string) Report

func (*NSCheck) IPCheck

func (c *NSCheck) IPCheck() []ReportResult

func (*NSCheck) Identical

func (c *NSCheck) Identical() ReportResult

func (*NSCheck) Recursive

func (c *NSCheck) Recursive() []ReportResult

func (*NSCheck) Scan

func (c *NSCheck) Scan(domain string)

func (*NSCheck) Values

func (c *NSCheck) Values() []ReportResult

type NSCheckData

type NSCheckData struct {
	Name      string
	IP        string
	NS        []dns.RR
	CNAME     []dns.RR
	Error     string
	Auth      bool
	Recursive bool
}

type Report

type Report struct {
	Type   string
	Result []ReportResult
}

func (Report) String

func (r Report) String() string

type ReportResult

type ReportResult struct {
	Result  string
	Status  bool
	Error   string
	Records []string
	Name    string
}

type SOACheck

type SOACheck struct {
	NS     []structs.NSData
	SOA    []SOAData
	Domain string
	Report
	// contains filtered or unexported fields
}

func NewSOA

func NewSOA(s *scan.Scan, ns []structs.NSData) *SOACheck

func (*SOACheck) CreateReport

func (c *SOACheck) CreateReport(domain string) Report

func (*SOACheck) Identical

func (c *SOACheck) Identical() ReportResult

func (*SOACheck) Scan

func (c *SOACheck) Scan(domain string)

func (*SOACheck) Values

func (c *SOACheck) Values() []ReportResult

type SOAData

type SOAData struct {
	Name  string
	IP    string
	SOA   *dns.SOA
	Error string
}

type SpamCheck

type SpamCheck struct {
	NS   []structs.NSData
	Spam []SpamData
	Report
	// contains filtered or unexported fields
}

func NewSpam

func NewSpam(s *scan.Scan, ns []structs.NSData) *SpamCheck

func (*SpamCheck) CreateReport

func (c *SpamCheck) CreateReport(domain string) Report

func (*SpamCheck) Scan

func (c *SpamCheck) Scan(domain string)

func (*SpamCheck) ScanBIMI added in v1.0.2

func (c *SpamCheck) ScanBIMI(domain string)

func (*SpamCheck) ScanDmarc

func (c *SpamCheck) ScanDmarc(domain string)

func (*SpamCheck) ScanSpf

func (c *SpamCheck) ScanSpf(domain string)

func (*SpamCheck) Values

func (c *SpamCheck) Values() []ReportResult

type SpamData

type SpamData struct {
	Name  string
	IP    string
	Dmarc []dns.RR
	Spf   []dns.RR
	BIMI  []dns.RR
	Error string
}

type WebCheck

type WebCheck struct {
	NS  []structs.NSData
	Web []WebData
	Report
	// contains filtered or unexported fields
}

func NewWeb

func NewWeb(s *scan.Scan, ns []structs.NSData) *WebCheck

func (*WebCheck) CheckApex

func (c *WebCheck) CheckApex() []ReportResult

func (*WebCheck) CheckWww

func (c *WebCheck) CheckWww() []ReportResult

func (*WebCheck) CreateReport

func (c *WebCheck) CreateReport(domain string) Report

func (*WebCheck) Scan

func (c *WebCheck) Scan(domain string)

func (*WebCheck) Values

func (c *WebCheck) Values() []ReportResult

type WebData

type WebData struct {
	Name  string
	IP    string
	A     []dns.RR
	Apex  []dns.RR
	Error string
}

Jump to

Keyboard shortcuts

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