massdns

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 15 Imported by: 1

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
}

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