webscan

package
v0.0.0-...-ee002d2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstGet

func FirstGet(r *req.Request, 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 GetWappalyzerString

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

func Jsjump

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

func Mmh3Hash32

func Mmh3Hash32(raw []byte) string

func NewReqClient

func NewReqClient(proxy string, timeout int, headers []string) *req.Client

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 GetDefaultFingersData

func GetDefaultFingersData() (fingerRules []*FingerRule, err error)

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
	Timeout     int
	Headers     []string
	Threads     int
	NoColor     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, 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