webscan

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ToHttps = []string{
		"sent to HTTPS port",
		"This combination of host and port requires TLS",
		"Instead use the HTTPS scheme to",
		"This web server is running in SSL mode",
	}
)

Functions

func CheckAlive added in v1.8.24

func CheckAlive(urls []string, timeout, threads int, proxy string) (results []string)

CheckAlive HTTP存活扫描

func FirstGet

func FirstGet(client *req.Client, url string) (resp *req.Response, err error)

func FmtResult

func FmtResult(result *Result, noColor bool) (res string)

func GetFingerString

func GetFingerString(fingers []*FingerRule) (fingerString string)

func GetTitle added in v1.8.33

func GetTitle(resp *req.Response) (title string)

func GetWappalyzerString

func GetWappalyzerString(result map[string]struct{}) (wappalyzerString string)

func HasPoc added in v1.7.5

func HasPoc(fingers []*FingerRule) bool

func Jsjump

func Jsjump(resp *req.Response) (jumpurl string)

func Mmh3Hash32

func Mmh3Hash32(raw []byte) string

func StandBase64

func StandBase64(braw []byte) []byte

Types

type Finger

type Finger struct {
	Type  string  `json:"type"`
	Rules []*Rule `json:"rules"`
}

type FingerRule

type FingerRule struct {
	Name    string    `json:"name"`
	Tags    []string  `json:"tags"`
	PocTags []string  `json:"pocTags"`
	Desc    string    `json:"desc"`
	Fingers []*Finger `json:"fingers"`
	HasPoc  bool      `json:"hasPoc"`
}

func FilterTags

func FilterTags(fingers []*FingerRule, filterTags []string) (newFingers []*FingerRule)

type FingerRules

type FingerRules []*FingerRule

func (FingerRules) Len

func (f FingerRules) Len() int

func (FingerRules) Less

func (f FingerRules) Less(i, j int) bool

func (FingerRules) Swap

func (f FingerRules) Swap(i, j int)

type Options

type Options struct {
	Proxy        string
	Threads      int
	Timeout      int
	Headers      []string
	NoColor      bool
	NoIconhash   bool
	NoWappalyzer bool
	FingerRules  []*FingerRule
}

type Result

type Result struct {
	Url           string
	StatusCode    int
	ContentLength int
	Favicon       string
	IconHash      string
	Title         string
	Wappalyzer    map[string]struct{}
	Fingers       []*FingerRule
}

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 Rule

type Rule struct {
	Method   string `json:"method"`
	Location string `json:"location"`
	Keyword  string `json:"keyword"`
}

type Runner

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

func NewRunner

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

func (*Runner) FromURLGetContent

func (r *Runner) FromURLGetContent(url string) (content []byte, err error)

func (*Runner) GetHash

func (r *Runner) GetHash(url string) (iconhash string)

func (*Runner) Run

func (r *Runner) Run(urls []string) (results Results)

func (*Runner) Webinfo

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

Jump to

Keyboard shortcuts

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