dirscan

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input added in v1.7.3

type Input struct {
	Target string
	Dirs   []string
}

type Options

type Options struct {
	Proxy   string
	Threads int
	Timeout int
	Headers []string

	MaxMatched  int
	MatchStatus []int
}

type Result

type Result struct {
	Url           string
	StatusCode    int
	ContentLength int
	Suffix        string
	ContentType   string
}

type Results

type Results []*Result

Results 按照contentLength排序

func (Results) Len

func (s Results) Len() int

func (Results) Less

func (s Results) Less(i, j int) bool

func (Results) Swap

func (s Results) Swap(i, j int)

type Runner

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

func NewRunner

func NewRunner(options *Options) (*Runner, error)

func (*Runner) Dirscan

func (r *Runner) Dirscan(input *Input) (results Results)

func (*Runner) Req

func (r *Runner) Req(url string) (result *Result, err error)

func (*Runner) Run

func (r *Runner) Run(inputs []*Input) (results Results)

Jump to

Keyboard shortcuts

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