massdns

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: GPL-3.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section 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) ProcessDomainStreaming added in v1.2.0

func (instance *Instance) ProcessDomainStreaming(ctx context.Context, wordlistFile *os.File) error

ProcessDomainStreaming processes domain bruteforce using streaming with batcher

func (*Instance) ProcessSubdomainsStreaming added in v1.2.0

func (instance *Instance) ProcessSubdomainsStreaming(ctx context.Context, subdomainReader io.Reader) error

ProcessSubdomainsStreaming processes subdomain list using streaming with batcher

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 {
	// AutoExtractRootDomains is used to extract root domains from the input list of subdomains
	AutoExtractRootDomains bool
	// 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
	// KeepStderr controls whether to capture and store massdns stderr output
	KeepStderr bool
	// BatchSize controls the number of lines per chunk for incremental processing
	BatchSize int

	OnResult func(*retryabledns.DNSData)
}

Jump to

Keyboard shortcuts

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