scanner

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: 42 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")
View Source
var DefaultProviderConfigLocation = filepath.Join(DefaultPathScanDir, "provider-config.yaml")

Functions

func DecodeData

func DecodeData(data []byte, headers http.Header) ([]byte, error)

DecodeData ExtractTitle from a response

func DecodeKorean

func DecodeKorean(s []byte) ([]byte, error)

func Decodebig5

func Decodebig5(s []byte) ([]byte, error)

Decodebig5 converts BIG5 to UTF-8

func Decodegbk

func Decodegbk(s []byte) ([]byte, error)

Decodegbk converts GBK to UTF-8

func Encodebig5

func Encodebig5(s []byte) ([]byte, error)

Encodebig5 converts UTF-8 to BIG5

Types

type Hashes added in v2.1.0

type Hashes struct {
	BodyMd5       string `json:"body-md5"`
	HeaderMd5     string `json:"header-md5"`
	RawMd5        string `json:"raw-md5"`
	BodySimhash   uint64 `json:"body-simhash"`
	HeaderSimhash uint64 `json:"header-simhash"`
	RawSimhash    uint64 `json:"raw-simhash"`
	BodyMmh3      string `json:"body-mmh3"`
}

type Response

type Response struct {
	Response      *http.Response
	Raw           string
	RawData       []byte
	RawHeaders    string
	Headers       map[string][]string
	StatusCode    int
	ContentLength int
	Data          []byte
	*Hashes
}

type Scanner

type Scanner struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(options *types.Options) (*Scanner, error)

func (*Scanner) Alive

func (scanner *Scanner) Alive(target *input.Target) []*input.Target

func (*Scanner) Close

func (scanner *Scanner) Close()

func (*Scanner) CountOperators

func (scanner *Scanner) CountOperators() int

func (*Scanner) CountOperatorsRequest

func (scanner *Scanner) CountOperatorsRequest() int

func (*Scanner) IsSkipURL

func (scanner *Scanner) IsSkipURL(URL string) bool

func (*Scanner) MergeOperators added in v2.0.3

func (scanner *Scanner) MergeOperators()

func (*Scanner) Scan

func (scanner *Scanner) Scan(target *input.Target, writer func(event output.ResultEvent))

func (*Scanner) ScanAutoSkipOutput added in v2.1.0

func (scanner *Scanner) ScanAutoSkipOutput(target *input.Target, writer func(event output.ResultEvent))

func (*Scanner) ScanOperators added in v2.1.0

func (scanner *Scanner) ScanOperators(target *input.Target, callback func(event output.ResultEvent))

ScanOperators scans the target for operators

func (*Scanner) ScanUncover

func (scanner *Scanner) ScanUncover(resultCallback func(event string)) (<-chan string, error)

Jump to

Keyboard shortcuts

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