Versions in this module Expand all Collapse all v1 v1.3.2 Mar 4, 2022 Changes in this version + var VERSION = "1.3.1" + var VERSION_APPENDIX = "-dev" + func FileExists(path string) bool + func RandomString(n int) string + func UniqStringSlice(inslice []string) []string + func Version() string + type Config struct + AutoCalibration bool + AutoCalibrationStrings []string + Cancel context.CancelFunc + Colors bool + CommandKeywords []string + CommandLine string + ConfigFile string + Context context.Context + Data string + Delay optRange + DirSearchCompat bool + Extensions []string + Filters map[string]FilterProvider + FollowRedirects bool + Headers map[string]string + IgnoreBody bool + IgnoreWordlistComments bool + InputMode string + InputNum int + InputProviders []InputProviderConfig + InputShell string + Matchers map[string]FilterProvider + MaxTime int + MaxTimeJob int + Method string + Noninteractive bool + OutputDirectory string + OutputFile string + OutputFormat string + OutputSkipEmptyFile bool + ProgressFrequency int + ProxyURL string + Quiet bool + Rate int64 + Recursion bool + RecursionDepth int + RecursionStrategy string + ReplayProxyURL string + SNI string + StopOn403 bool + StopOnAll bool + StopOnErrors bool + Threads int + Timeout int + Url string + Verbose bool + func ConfigFromOptions(parseOpts *ConfigOptions, ctx context.Context, cancel context.CancelFunc) (*Config, error) + func NewConfig(ctx context.Context, cancel context.CancelFunc) Config + func (c *Config) SetContext(ctx context.Context, cancel context.CancelFunc) + type ConfigOptions struct + Filter FilterOptions + General GeneralOptions + HTTP HTTPOptions + Input InputOptions + Matcher MatcherOptions + Output OutputOptions + func NewConfigOptions() *ConfigOptions + func ReadConfig(configFile string) (*ConfigOptions, error) + func ReadDefaultConfig() (*ConfigOptions, error) + type FilterOptions struct + Lines string + Regexp string + Size string + Status string + Time string + Words string + type FilterProvider interface + Filter func(response *Response) (bool, error) + Repr func() string + ReprVerbose func() string + type GeneralOptions struct + AutoCalibration bool + AutoCalibrationStrings []string + Colors bool + ConfigFile string + Delay string + MaxTime int + MaxTimeJob int + Noninteractive bool + Quiet bool + Rate int + ShowVersion bool + StopOn403 bool + StopOnAll bool + StopOnErrors bool + Threads int + Verbose bool + type HTTPOptions struct + Cookies []string + Data string + FollowRedirects bool + Headers []string + IgnoreBody bool + Method string + ProxyURL string + Recursion bool + RecursionDepth int + RecursionStrategy string + ReplayProxyURL string + SNI string + Timeout int + URL string + type InputOptions struct + DirSearchCompat bool + Extensions string + IgnoreWordlistComments bool + InputMode string + InputNum int + InputShell string + Inputcommands []string + Request string + RequestProto string + Wordlists []string + type InputProvider interface + AddProvider func(InputProviderConfig) error + Next func() bool + Position func() int + Reset func() + Total func() int + Value func() map[string][]byte + type InputProviderConfig struct + Keyword string + Name string + Value string + type InternalInputProvider interface + IncrementPosition func() + Keyword func() string + Next func() bool + Position func() int + ResetPosition func() + Total func() int + Value func() []byte + type Job struct + Config *Config + Count403 int + Count429 int + Counter int + Error string + ErrorCounter int + ErrorMutex sync.Mutex + Input InputProvider + Output OutputProvider + Paused bool + Rate *RateThrottle + ReplayRunner RunnerProvider + Runner RunnerProvider + Running bool + RunningJob bool + SpuriousErrorCounter int + Total int + func NewJob(conf *Config) *Job + func (j *Job) CalibrateResponses() ([]Response, error) + func (j *Job) CheckStop() + func (j *Job) DeleteQueueItem(index int) + func (j *Job) Next() + func (j *Job) Pause() + func (j *Job) QueuedJobs() []QueueJob + func (j *Job) Reset(cycle bool) + func (j *Job) Resume() + func (j *Job) SkipQueue() + func (j *Job) Start() + func (j *Job) Stop() + type MatcherOptions struct + Lines string + Regexp string + Size string + Status string + Time string + Words string + type Multierror struct + func NewMultierror() Multierror + func (m *Multierror) Add(err error) + func (m *Multierror) ErrorOrNil() error + type OutputOptions struct + DebugLog string + OutputDirectory string + OutputFile string + OutputFormat string + OutputSkipEmptyFile bool + type OutputProvider interface + Banner func() + Cycle func() + Error func(errstring string) + Finalize func() error + GetCurrentResults func() []Result + Info func(infostring string) + PrintResult func(res Result) + Progress func(status Progress) + Raw func(output string) + Reset func() + Result func(resp Response) + SaveFile func(filename, format string) error + SetCurrentResults func(results []Result) + Warning func(warnstring string) + type Progress struct + ErrorCount int + QueuePos int + QueueTotal int + ReqCount int + ReqSec int64 + ReqTotal int + StartedAt time.Time + type QueueJob struct + Url string + type RateThrottle struct + Config *Config + RateAdjustment float64 + RateAdjustmentPos int + RateMutex sync.Mutex + func NewRateThrottle(conf *Config) *RateThrottle + func (r *RateThrottle) Adjust() + func (r *RateThrottle) CurrentRate() int64 + func (r *RateThrottle) Throttle() + func (r *RateThrottle) Tick(start, end time.Time) + type Request struct + Data []byte + Headers map[string]string + Host string + Input map[string][]byte + Method string + Position int + Raw string + Url string + func NewRequest(conf *Config) Request + type Response struct + Cancelled bool + ContentLength int64 + ContentLines int64 + ContentType string + ContentWords int64 + Data []byte + Headers map[string][]string + Raw string + Request *Request + ResultFile string + StatusCode int64 + Time time.Duration + func NewResponse(httpresp *http.Response, req *Request) Response + func (resp *Response) GetRedirectLocation(absolute bool) string + type Result struct + ContentLength int64 + ContentLines int64 + ContentType string + ContentWords int64 + Duration time.Duration + HTMLColor string + Host string + Input map[string][]byte + Position int + RedirectLocation string + ResultFile string + StatusCode int64 + Url string + type RunnerProvider interface + Execute func(req *Request) (Response, error) + Prepare func(input map[string][]byte) (Request, error) + type ValueRange struct + Max int64 + Min int64 + func ValueRangeFromString(instr string) (ValueRange, error)