massdns

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-3.0 Imports: 18 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) DumpWildcardsToFile

func (c *Client) DumpWildcardsToFile(filename string) error

DumpWildcardsToFile dumps the wildcard ips list to file

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 number 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
	// Json is format ouput to ndjson format
	Json bool
	// 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
	// WildcardOutputFile is the file where the list of wildcards is dumped
	WildcardOutputFile string
	// MassDnsCmd supports massdns flags
	MassDnsCmd string
	// NDJSON specifies how to parse the input
	NDJSON 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