runner

package
v3.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 92 Imported by: 0

Documentation

Overview

Package runner executes the enumeration process.

Index

Constants

View Source
const (
	// Default directory used to save protocols traffic
	DefaultDumpTrafficOutputFolder = "output"
)

Variables

View Source
var (
	// HideAutoSaveMsg is a global variable to hide the auto-save message
	HideAutoSaveMsg = false
	// EnableCloudUpload is global variable to enable cloud upload
	EnableCloudUpload = false
)

Functions

func AuthWithPDCP

func AuthWithPDCP()

AuthWithPDCP is used to authenticate with PDCP

func ConfigureOptions

func ConfigureOptions() error

func DoHealthCheck

func DoHealthCheck(options *types.Options) string

DoHealthCheck performs self-diagnostic checks

func GetAuthTmplStore

func GetAuthTmplStore(opts types.Options, catalog catalog.Catalog, execOpts protocols.ExecutorOptions) (*loader.Store, error)

GetAuthTmplStore create new loader for loading auth templates

func GetLazyAuthFetchCallback

func GetLazyAuthFetchCallback(opts *AuthLazyFetchOptions) authx.LazyFetchSecret

GetLazyAuthFetchCallback returns a lazy fetch callback for auth secrets

func NucleiToolUpdateCallback

func NucleiToolUpdateCallback()

NucleiToolUpdateCallback updates nuclei binary/tool to latest version

func ParseOptions

func ParseOptions(options *types.Options)

ParseOptions parses the command line flags provided by a user

func ValidateOptions

func ValidateOptions(options *types.Options) error

validateOptions validates the configuration options passed

func Walk

func Walk(s interface{}, callback WalkFunc)

Walk traverses a struct and executes a callback function on each value in the struct. The interface{} passed to the function should be a pointer to a struct or a struct. WalkFunc is the callback function used for each value in the struct. It is passed the reflect.Value and reflect.Type properties of the value in the struct.

Types

type AuthLazyFetchOptions

type AuthLazyFetchOptions struct {
	TemplateStore *loader.Store
	ExecOpts      protocols.ExecutorOptions
	OnError       func(error)
}

type Runner

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

Runner is a client for running the enumeration process.

func New

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

New creates a new client for running the enumeration process.

func (*Runner) Close

func (r *Runner) Close()

Close releases all the resources and cleans up

func (*Runner) RunEnumeration

func (r *Runner) RunEnumeration() error

RunEnumeration sets up the input layer for giving input nuclei. binary and runs the actual enumeration

func (*Runner) SaveResumeConfig

func (r *Runner) SaveResumeConfig(path string) error

SaveResumeConfig to file

type WalkFunc

type WalkFunc func(reflect.Value, reflect.StructField)

Jump to

Keyboard shortcuts

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