Documentation ¶
Index ¶
- Variables
- func BaseFilenameFromURL(s string) string
- func Gorequest(o core.Options) *gorequest.SuperAgent
- func Green(s string) string
- func HostAndPortToURL(host string, port int, protocol string) string
- func RandomIPv4Address() string
- func RandomUserAgent() string
- func Red(s string) string
- func URLEscape(s string) string
- func Yellow(s string) string
- type Fingerprint
- type FingerprintRegexp
- type TCPPortScanner
- type URLHostnameResolver
- type URLPageTitleExtractor
- type URLPublisher
- type URLRequester
- type URLScreenshotter
- type URLTakeoverDetector
- type URLTechnologyFingerprinter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UserAgents = []string{
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 OPR/58.0.3135.132",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 YaBrowser/19.4.0.2397 Yowser/2.5 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.86 Chrome/73.0.3683.86 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0",
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 YaBrowser/19.4.0.2397 Yowser/2.5 Safari/537.36",
"Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36",
}
)
Functions ¶
func BaseFilenameFromURL ¶
func RandomIPv4Address ¶
func RandomIPv4Address() string
func RandomUserAgent ¶
func RandomUserAgent() string
Types ¶
type Fingerprint ¶ added in v1.4.0
type Fingerprint struct { Name string `json:"name"` Categories []string `json:"categories"` Implies []string `json:"implies"` Website string `json:"website"` Headers map[string]string `json:"headers"` HTML []string `json:"html"` Script []string `json:"script"` Meta map[string]string `json:"meta"` HeaderFingerprints map[string]FingerprintRegexp HTMLFingerprints []FingerprintRegexp ScriptFingerprints []FingerprintRegexp MetaFingerprints map[string]FingerprintRegexp }
func (*Fingerprint) LoadPatterns ¶ added in v1.4.0
func (f *Fingerprint) LoadPatterns()
type FingerprintRegexp ¶ added in v1.4.0
type TCPPortScanner ¶
type TCPPortScanner struct {
// contains filtered or unexported fields
}
func NewTCPPortScanner ¶
func NewTCPPortScanner() *TCPPortScanner
func (*TCPPortScanner) ID ¶
func (d *TCPPortScanner) ID() string
func (*TCPPortScanner) OnHost ¶
func (a *TCPPortScanner) OnHost(host string)
type URLHostnameResolver ¶ added in v1.7.0
type URLHostnameResolver struct {
// contains filtered or unexported fields
}
func NewURLHostnameResolver ¶ added in v1.7.0
func NewURLHostnameResolver() *URLHostnameResolver
func (*URLHostnameResolver) ID ¶ added in v1.7.0
func (a *URLHostnameResolver) ID() string
func (*URLHostnameResolver) OnURLResponsive ¶ added in v1.7.0
func (a *URLHostnameResolver) OnURLResponsive(url string)
type URLPageTitleExtractor ¶ added in v1.7.0
type URLPageTitleExtractor struct {
// contains filtered or unexported fields
}
func NewURLPageTitleExtractor ¶ added in v1.7.0
func NewURLPageTitleExtractor() *URLPageTitleExtractor
func (*URLPageTitleExtractor) ID ¶ added in v1.7.0
func (a *URLPageTitleExtractor) ID() string
func (*URLPageTitleExtractor) OnURLResponsive ¶ added in v1.7.0
func (a *URLPageTitleExtractor) OnURLResponsive(url string)
type URLPublisher ¶
type URLPublisher struct {
// contains filtered or unexported fields
}
func NewURLPublisher ¶
func NewURLPublisher() *URLPublisher
func (*URLPublisher) ID ¶
func (d *URLPublisher) ID() string
func (*URLPublisher) OnTCPPort ¶
func (a *URLPublisher) OnTCPPort(port int, host string)
type URLRequester ¶
type URLRequester struct {
// contains filtered or unexported fields
}
func NewURLRequester ¶
func NewURLRequester() *URLRequester
func (*URLRequester) ID ¶
func (d *URLRequester) ID() string
func (*URLRequester) OnURL ¶
func (a *URLRequester) OnURL(url string)
type URLScreenshotter ¶
type URLScreenshotter struct {
// contains filtered or unexported fields
}
func NewURLScreenshotter ¶
func NewURLScreenshotter() *URLScreenshotter
func (*URLScreenshotter) ID ¶
func (a *URLScreenshotter) ID() string
func (*URLScreenshotter) OnSessionEnd ¶ added in v1.7.0
func (a *URLScreenshotter) OnSessionEnd()
func (*URLScreenshotter) OnURLResponsive ¶
func (a *URLScreenshotter) OnURLResponsive(url string)
type URLTakeoverDetector ¶ added in v1.4.0
type URLTakeoverDetector struct {
// contains filtered or unexported fields
}
func NewURLTakeoverDetector ¶ added in v1.4.0
func NewURLTakeoverDetector() *URLTakeoverDetector
func (*URLTakeoverDetector) ID ¶ added in v1.4.0
func (d *URLTakeoverDetector) ID() string
func (*URLTakeoverDetector) OnURLResponsive ¶ added in v1.4.0
func (a *URLTakeoverDetector) OnURLResponsive(u string)
type URLTechnologyFingerprinter ¶ added in v1.4.0
type URLTechnologyFingerprinter struct {
// contains filtered or unexported fields
}
func NewURLTechnologyFingerprinter ¶ added in v1.4.0
func NewURLTechnologyFingerprinter() *URLTechnologyFingerprinter
func (*URLTechnologyFingerprinter) ID ¶ added in v1.4.0
func (a *URLTechnologyFingerprinter) ID() string
func (*URLTechnologyFingerprinter) OnURLResponsive ¶ added in v1.4.0
func (a *URLTechnologyFingerprinter) OnURLResponsive(url string)
Click to show internal directories.
Click to hide internal directories.