types

package
v0.0.0-...-a98a27f Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(url string, file string, thread int, statuslist []int, header map[string]string, proxy string, filter string, output string, recursive bool, debug bool, mutex *sync.Mutex) Config

* Constructor

func NewConfigFromParams

func NewConfigFromParams(url string, file string, thread int, status string, header string, proxy string, filter string, output string, recursive bool, debug bool, mutex *sync.Mutex) Config

* Constuctor With Check From Params

func (Config) Debug

func (cfg Config) Debug() bool

func (Config) File

func (cfg Config) File() string

func (Config) Filter

func (cfg Config) Filter() string

func (Config) Header

func (cfg Config) Header() map[string]string

func (Config) Mutex

func (cfg Config) Mutex() *sync.Mutex

func (Config) OutputFile

func (cfg Config) OutputFile() string

func (Config) Proxy

func (cfg Config) Proxy() string

func (Config) Recursive

func (cfg Config) Recursive() bool

func (Config) StatusList

func (cfg Config) StatusList() []int

func (Config) Thread

func (cfg Config) Thread() int

func (Config) Url

func (cfg Config) Url() string

type DirScanTask

type DirScanTask struct {
	Task
	// contains filtered or unexported fields
}

func NewDirScanTask

func NewDirScanTask(task Task, cfg Config, payloads []string, last []string, tmp []string) *DirScanTask

func (DirScanTask) CheckTarget

func (t DirScanTask) CheckTarget(payload string) bool

* 页面校验

func (DirScanTask) Config

func (t DirScanTask) Config() Config

func (DirScanTask) Last

func (t DirScanTask) Last() []string

func (DirScanTask) Page404

func (t DirScanTask) Page404() []byte

func (DirScanTask) Payloads

func (t DirScanTask) Payloads() []string

func (DirScanTask) Tmp

func (t DirScanTask) Tmp() []string

func (*DirScanTask) Working

func (t *DirScanTask) Working()

type Pool

type Pool struct {
	TaskChan   chan Worker
	MsgChan    chan string
	ResultChan chan interface{}
	// contains filtered or unexported fields
}

func NewPool

func NewPool() *Pool

func (*Pool) Num

func (p *Pool) Num() int

func (*Pool) Result

func (p *Pool) Result() []interface{}

func (*Pool) Run

func (p *Pool) Run()

type Task

type Task struct {
	Args       map[string]interface{}
	MsgChan    chan string
	ResultChan chan interface{}
}

type Worker

type Worker interface {
	Working()
}

Jump to

Keyboard shortcuts

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