wildcards

package
v1.0.5-0...-8579762 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package wildcards contains helper functions for working with wildcards during dns enumeration for removing wildcard subdomains.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver represents a dns resolver for removing wildcards

func NewResolver

func NewResolver(domain string, retries int) (*Resolver, error)

NewResolver initializes and creates a new resolver to find wildcards

func (*Resolver) AddServersFromFile

func (w *Resolver) AddServersFromFile(file string) error

AddServersFromFile adds the resolvers from a file to the list of servers

func (*Resolver) AddServersFromList

func (w *Resolver) AddServersFromList(list []string)

AddServersFromList adds the resolvers from a list of servers

func (*Resolver) LookupHost

func (w *Resolver) LookupHost(host string) (bool, map[string]struct{}, string)

LookupHost returns wildcard IP addresses of a wildcard if it's a wildcard. To determine, first we split the target host by dots, create permutation of it's levels, check for wildcard on each one of them and if found any, we remove all the hosts that have this IP from the map.

Jump to

Keyboard shortcuts

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