massdns

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: 20 Imported by: 0

Documentation

Overview

Package massdns implements the main resolving and wildcard removal logic. It runs the massdns tool, parsing the output file and writing the results to a specified file or output stream like stdout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBlankFile

func IsBlankFile(file string) (bool, error)

IsBlankFile checks if a file is blank

Types

type Client

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

Client is a client for running massdns on a target

func New

func New(config Config) (*Client, error)

New returns a new massdns client for running enumeration on a target.

func (*Client) Process

func (c *Client) Process() error

Process runs the actual enumeration process returning a file

type Config

type Config struct {
	// Domain is the domain specified for enumeration
	Domain string
	// Retries is the nmber of retries for dns
	Retries int
	// MassdnsPath is the path to the binary
	MassdnsPath string
	// Threads is the hashmap size for massdns
	Threads int
	// InputFile is the file to use for massdns input
	InputFile string
	// ResolversFile is the file with the resolvers
	ResolversFile string
	// TempDir is a temporary directory for storing massdns misc files
	TempDir string
	// OutputFile is the file to use for massdns output
	OutputFile string
	// WildcardDomainsFile is the file to use for wildcard domains output
	WildcardDomainsFile string
	// NxAliasFile is the file to use for nonexistent aliases output
	NxAliasFile string
	// RCodeFile is the file to use for error response codes output
	RCodeFile string
	// WildcardsThreads is the number of wildcards concurrent threads
	WildcardsThreads int
	// MassdnsRaw perform wildcards filtering from an existing massdns output file
	MassdnsRaw string
	// StrictWildcard controls whether the wildcard check should be performed on each result
	StrictWildcard bool
}

Config contains configuration options for the massdns client

Jump to

Keyboard shortcuts

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