runner

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package runner contains the internal logic

Index

Constants

View Source
const Version = `0.0.6`

Version is the current version

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHeaders added in v0.0.6

type HTTPHeaders []httpserver.HTTPHeader

HTTPHeaders is a slice of HTTPHeader structs

func (*HTTPHeaders) Set added in v0.0.6

func (h *HTTPHeaders) Set(value string) error

Set sets a new header, which must be a string of the form 'name: value'

func (*HTTPHeaders) String added in v0.0.6

func (h *HTTPHeaders) String() string

type Options

type Options struct {
	ListenAddress string
	Folder        string
	BasicAuth     string

	Realm           string
	TLSCertificate  string
	TLSKey          string
	TLSDomain       string
	HTTPS           bool
	Verbose         bool
	EnableUpload    bool
	EnableTCP       bool
	RulesFile       string
	TCPWithTLS      bool
	Version         bool
	Silent          bool
	Sandbox         bool
	MaxFileSize     int
	HTTP1Only       bool
	MaxDumpBodySize int
	Python          bool
	CORS            bool
	HTTPHeaders     HTTPHeaders
	// contains filtered or unexported fields
}

Options of the tool

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options for application

func (*Options) FolderAbsPath

func (options *Options) FolderAbsPath() string

FolderAbsPath of the fileserver folder

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)

New instance of runner

func (*Runner) Close

func (r *Runner) Close() error

Close the listening services

func (*Runner) Run

func (r *Runner) Run() error

Run logic

type WatchEvent added in v0.0.5

type WatchEvent func(fname string) error

Jump to

Keyboard shortcuts

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