bbscan

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

README

BBscan

规则含义

  • status 状态码
  • type 返回包 Content-Type 格式
  • type_no 返回包 Content-Type 格式不包括
  • tag 返回包内容匹配
  • root_only 只有主目录下才会存在该路径
  • fingprints 网站的指纹, 多种形式以 , 分割 表示或

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegTag           *regexp.Regexp
	RegStatus        *regexp.Regexp
	RegContentType   *regexp.Regexp
	RegContentTypeNo *regexp.Regexp
	RegFingprints    *regexp.Regexp

	BlackText      *regexp.Regexp
	BlackRegexText *regexp.Regexp
	BlackAllText   *regexp.Regexp
)
View Source
var Rules map[string]*Rule

Functions

func BBscan

func BBscan(u string, root bool, fingprints []string, header map[string]string, client *httpx.Client) []string

BBscan u: 目标 root: 扫描路径是否为主目录

func SingleScan added in v0.3.1

func SingleScan(targets []string, path string)

Types

type Page

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

func ReqPage

func ReqPage(u string, header map[string]string, client *httpx.Client) (*Page, *httpx.Response, error)

type Plugin added in v1.0.0

type Plugin struct {
	SeenRequests sync.Map
}

func (*Plugin) IsScanned added in v1.0.0

func (p *Plugin) IsScanned(key string) bool

func (*Plugin) Name added in v1.0.0

func (p *Plugin) Name() string

func (*Plugin) Scan added in v1.0.0

func (p *Plugin) Scan(target, path string, in *input.CrawlResult, client *httpx.Client)

type Rule

type Rule struct {
	Tag        string   // 文本内容
	Status     string   // 状态码
	Type       string   // 返回的 ContentType
	TypeNo     string   // 不可能返回的 ContentType
	Fingprints []string // 指纹,只有匹配到该指纹,才会进行目录扫描
	Root       bool     // 是否为一级目录
}

Jump to

Keyboard shortcuts

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