massdns

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmptyFile added in v1.1.0

func IsEmptyFile(file string) (bool, error)

IsEmptyFile checks if the file is empty.

Types

type Instance added in v1.1.0

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

func New

func New(options Options) (*Instance, error)

func (*Instance) DumpWildcardsToFile added in v1.1.0

func (instance *Instance) DumpWildcardsToFile(filename string) error

DumpWildcardsToFile dumps the wildcard IPs list to a file.

func (*Instance) LoadWildcardsFromFile added in v1.1.0

func (instance *Instance) LoadWildcardsFromFile(filename string) error

func (*Instance) Run added in v1.1.0

func (instance *Instance) Run(ctx context.Context) error

func (*Instance) RunWithContext added in v1.1.0

func (instance *Instance) RunWithContext(ctx context.Context) (stdout, stderr string, took time.Duration, err error)

runs massdns binary with the specified options

type Options added in v1.1.0

type Options struct {
	// Domain is the domain specified for enumeration
	Domains []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
	// TrustedResolvers is the file with the trusted resolvers
	TrustedResolvers 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 bool

	OnResult func(*retryabledns.DNSData)
}

Jump to

Keyboard shortcuts

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