checks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssueTargetNoResolve IssueType = "target might be unclaimed"
	IssueCnameTakeover             = "points to unclaimed resource"
	IssueNsTakeover                = "unclaimed zone delegation"
)
View Source
const (
	MethodCnameOnly    DetectionMethod = "CNAME only"
	MethodPatternOnly                  = "response body only"
	MethodCnamePattern                 = "CNAME + response body"
	MethodCnameLookup                  = "CNAME target lookup"
	MethodServfail                     = "SERVFAIL check"
)
View Source
const (
	NoService    = "n/a"
	NoTarget     = "no domain"
	NoNameserver = "no nameserver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Services []Service `json:"services"`
}

type DetectionMethod

type DetectionMethod string

type DomainChecker

type DomainChecker struct {
	Domains chan string
	// contains filtered or unexported fields
}

func NewDomainChecker

func NewDomainChecker(config *DomainCheckerConfig) *DomainChecker

func (*DomainChecker) Results

func (d *DomainChecker) Results() <-chan *Finding

func (*DomainChecker) Scan

func (d *DomainChecker) Scan()

type DomainCheckerConfig

type DomainCheckerConfig struct {
	Nameserver   string
	Verbose      bool
	UseSSL       bool
	Workers      int
	CustomFpFile string
	HttpTimeout  uint
}

type Finding

type Finding struct {
	Domain  string          `json:"domain"`
	Target  string          `json:"target"`
	Service string          `json:"service"`
	Type    IssueType       `json:"type"`
	Method  DetectionMethod `json:"method"`
}

type Findings

type Findings struct {
	Data []*Finding `json:"data"`
}

func (*Findings) Write

func (f *Findings) Write(filePath string) error

type IssueType

type IssueType string

type Service

type Service struct {
	Name     string   `json:"name"`
	CNames   []string `json:"cnames"`
	Patterns []string `json:"patterns"`
}

func LoadServices

func LoadServices(customFile string) []Service

Jump to

Keyboard shortcuts

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