input

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConcurrency = 20
	TimeoutRequest     = 10
)

Variables

This section is empty.

Functions

func CheckFlags

func CheckFlags(flags Input)

CheckFlags checks the flags taken as input.

func CheckOutputFile

func CheckOutputFile(input string) bool

CheckOutputFile checks if the string provided as input is formatted in a correct way.

func GetHeaders

func GetHeaders(input string) map[string]string

GetHeaders returns the headers provided as input using the headers flag. E.g. -headers \"Cookie: auth=yes;;Client: type=2\".

func ScanTargets

func ScanTargets() []string

ScanTargets return the array of elements taken as input on stdin.

Types

type Input

type Input struct {
	Version       bool
	Delay         int
	Concurrency   int
	Help          bool
	Examples      bool
	Plain         bool
	HTML          string
	TXT           string
	Ignore        string
	IgnoreTXT     string
	Cache         bool
	Timeout       int
	Intensive     bool
	Rua           bool
	Proxy         string
	Insecure      bool
	Secrets       bool
	SecretsFile   string
	Endpoints     bool
	EndpointsFile string
	Extensions    int
	Headers       string
	HeadersFile   string
	Errors        bool
	Info          bool
	Debug         bool
	UserAgent     string
}

Input struct. It contains all the possible options.

func ScanFlag

func ScanFlag() Input

ScanFlag defines all the options taken as input and scan them, then it returns an Input struct.

Jump to

Keyboard shortcuts

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