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 ¶
NewResolver initializes and creates a new resolver to find wildcards
func (*Resolver) AddServersFromFile ¶
AddServersFromFile adds the resolvers from a file to the list of servers
func (*Resolver) AddServersFromList ¶
AddServersFromList adds the resolvers from a list of servers
func (*Resolver) LookupHost ¶
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.