detector

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToUrlWithPort added in v1.2.16

func ConvertToUrlWithPort(url *url.URL) string

func Decodebig5 added in v1.0.0

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

Decodebig5 converts BIG5 to UTF-8

func Decodegbk added in v1.0.0

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

Decodegbk converts GBK to UTF-8

func Encodebig5 added in v1.0.0

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

Encodebig5 converts UTF-8 to BIG5

func ExtractTitle added in v1.0.0

func ExtractTitle(bodyBytes []byte, header http.Header) (title string)

ExtractTitle from a response

Types

type Match

type Match struct {
	AppName string     `json:"app_name"`
	Matches [][]string `json:"matches"`
	Version string     `json:"version"`
	// contains filtered or unexported fields
}

Match type encapsulates the app information from a match on a document

func (*Match) FindInHeaders

func (app *Match) FindInHeaders(headers http.Header) (matches [][]string, version string)

type StringArray

type StringArray []string

StringArray type is a wrapper for []string for use in unmarshalling the technologies.json

func (*StringArray) UnmarshalJSON

func (t *StringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON is a custom unmarshaler for handling bogus technologies.json types from wappalyzer

type Technology

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

func NewTechnology added in v0.2.14

func NewTechnology() *Technology

func (*Technology) Technology

func (t *Technology) Technology(url string, response []byte, headers http.Header, cookies []*http.Cookie) []Match

Jump to

Keyboard shortcuts

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