runner

package
v0.0.0-...-70e690f Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package runner executes the enumeration process.

Index

Constants

View Source
const (
	Comma   = ","
	NewLine = "\n"
)
View Source
const (
	DefaultResumeFile = "resume.cfg"
)
View Source
const Version = `1.1.1`

Version is the current version of dnsx

Variables

This section is empty.

Functions

func DoHealthCheck

func DoHealthCheck(options *Options) string

Types

type Options

type Options struct {
	Resolvers         string
	Hosts             string
	Domains           string
	WordList          string
	Threads           int
	RateLimit         int
	Retries           int
	OutputFormat      string
	OutputFile        string
	Raw               bool
	Silent            bool
	Verbose           bool
	Version           bool
	Response          bool
	ResponseOnly      bool
	A                 bool
	AAAA              bool
	NS                bool
	CNAME             bool
	PTR               bool
	MX                bool
	SOA               bool
	TXT               bool
	AXFR              bool
	JSON              bool
	Trace             bool
	TraceMaxRecursion int
	WildcardThreshold int
	WildcardDomain    string
	ShowStatistics    bool

	RCode string

	Resume bool

	HostsFile   bool
	Stream      bool
	CAA         bool
	OutputCDN   bool
	HealthCheck bool
	// contains filtered or unexported fields
}

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options for application

func (*Options) ShouldLoadResume

func (options *Options) ShouldLoadResume() bool

ShouldLoadResume resume file

func (*Options) ShouldSaveResume

func (options *Options) ShouldSaveResume() bool

ShouldSaveResume file

type ResumeCfg

type ResumeCfg struct {
	ResumeFrom string
	Index      int
	// contains filtered or unexported fields
}

type Runner

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

Runner is a client for running the enumeration process.

func New

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

func (*Runner) Close

func (r *Runner) Close()

Close running instance

func (*Runner) HandleOutput

func (r *Runner) HandleOutput()

func (*Runner) InputWorker

func (r *Runner) InputWorker()

func (*Runner) InputWorkerStream

func (r *Runner) InputWorkerStream()

func (*Runner) IsWildcard

func (r *Runner) IsWildcard(host string) bool

IsWildcard checks if a host is wildcard

func (*Runner) Run

func (r *Runner) Run() error

func (*Runner) SaveResumeConfig

func (r *Runner) SaveResumeConfig() error

SaveResumeConfig to file

Jump to

Keyboard shortcuts

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