dirscan

package
v1.8.40 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDomainDirs added in v1.8.24

func GenerateDomainDirs(domain string) (results []string)

func GenerateIpDirs added in v1.8.24

func GenerateIpDirs(ip string) (results []string)

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 `json:"url"`
	StatusCode    int    `json:"statusCode"`
	ContentLength int    `json:"contentLength"`
	ContentType   string `json:"-"`
	Title         string `json:"title"`
}

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