types

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPathScanDir = filepath.Join(folderutil.HomeDirOrDefault("."), ".config", "pathScan")
	DefaultMatchDir    = filepath.Join(DefaultPathScanDir, "match-config")
)
View Source
var DefaultOptions = &Options{
	RateLimit:      100,
	Thread:         30,
	HttpTimeout:    15,
	RetryMax:       0,
	UncoverLimit:   100,
	SubdomainLimit: 1000,
	Method:         []string{"GET"},
	Stdin:          fileutil.HasStdin(),
	Path:           []string{"/"},
	MatchPath:      DefaultMatchDir,
}
View Source
var ProxyURL string

ProxyURL is the proxy url

Functions

This section is empty.

Types

type Options

type Options struct {
	URL                 goflags.StringSlice             `json:"url"`
	List                goflags.StringSlice             `json:"list"`
	Path                goflags.StringSlice             `json:"path"`
	PathList            goflags.StringSlice             `json:"path-list"`
	Subdomain           bool                            `json:"subdomain"`
	Output              string                          `json:"output"`
	RateLimit           int                             `json:"rate-http"`
	Thread              int                             `json:"thread"`
	RetryMax            int                             `json:"retries"`
	Proxy               goflags.StringSlice             `json:"proxy"`
	NoColor             bool                            `json:"no-color"`
	Verbose             bool                            `json:"verbose"`
	Silent              bool                            `json:"silent"`
	SkipURL             goflags.StringSlice             `json:"skip-url"`
	SkipCode            goflags.StringSlice             `json:"skip-code"`
	SkipHash            string                          `json:"skip-hash"`
	SkipBodyLen         goflags.StringSlice             `json:"skip-body-len"`
	SkipHashMethod      string                          `json:"skip-hash-method"`
	ErrUseLastResponse  bool                            `json:"err-use-last-response"`
	CSV                 bool                            `json:"csv,omitempty"`
	HTML                bool                            `json:"html,omitempty"`
	Version             bool                            `json:"version"`
	Uncover             bool                            `json:"uncover"`
	UncoverQuery        goflags.StringSlice             `json:"uncover-query"`
	UncoverEngine       goflags.StringSlice             `json:"uncover-engine"`
	UncoverDelay        int                             `json:"uncover-delay"`
	UncoverLimit        int                             `json:"uncover-limit"`
	UncoverField        string                          `json:"uncover-field"`
	UncoverOutput       string                          `json:"uncover-output"`
	Update              bool                            `json:"update"`
	UserAgent           goflags.StringSlice             `json:"user-agent"`
	Cookie              string                          `json:"cookie"`
	Authorization       string                          `json:"authorization"`
	Header              goflags.StringSlice             `json:"header"`
	HttpTimeout         int                             `json:"http-timeout"`
	UpdateMatch         bool                            `json:"update-match-version"`
	Method              goflags.StringSlice             `json:"method"`
	MatchPath           string                          `json:"match-path"`
	GetHash             bool                            `json:"get-hash"`
	FindOtherDomainList goflags.StringSlice             `json:"find-other-domain-list"`
	ResultEventCallback func(result output.ResultEvent) `json:"-"`
	Body                string                          `json:"body"`
	FindOtherDomain     bool                            `json:"find-other-domain"`
	DisableStdin        bool                            `json:"disable-stdin"`
	DisableUpdateCheck  bool                            `json:"disable-update-check"`
	SubdomainLimit      int                             `json:"subdomain-limit"`
	SubdomainQuery      goflags.StringSlice             `json:"subdomain-query"`
	SubdomainEngine     goflags.StringSlice             `json:"subdomain-engine"`
	SubdomainOutput     string                          `json:"subdomain-output"`
	Resolvers           goflags.StringSlice             `json:"resolvers"`
	SkipBodyRegex       goflags.StringSlice             `json:"skip-body-regex"`
	BlackStatus         goflags.StringSlice             `json:"black-status"`
	LoadAPIDict         bool                            `json:"load-api-dict"`
	Debug               bool                            `json:"debug"`
	Validate            bool                            `json:"validate"`
	Stdin               bool                            `json:"stdin"`
	Operator            bool                            `json:"operator"`
	URLs                []*input.Target                 `json:"-"`
	DisableAliveCheck   bool                            `json:"skip-alive-check"`
	WafStatus           goflags.StringSlice             `json:"waf-status"`
	FuzzyStatus         goflags.StringSlice             `json:"fuzzy-status"`
	DisableAutoPathScan bool                            `json:"disable-auto-path-scan"`
}

func (*Options) CountURL

func (o *Options) CountURL() int

func (*Options) IsPathEmpty

func (o *Options) IsPathEmpty() bool

func (*Options) OutputType

func (o *Options) OutputType() string

func (*Options) SkipOutputIsEmpty

func (o *Options) SkipOutputIsEmpty() bool

Jump to

Keyboard shortcuts

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