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 URLLogger
- 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/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"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/70.0.3538.67 Safari/537.36",
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15",
"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_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0",
"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/70.0.3538.67 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36",
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36",
"Mozilla/5.0 (iPad; CPU OS 12_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0",
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0",
"Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko/20100101 Firefox/62.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.52",
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 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 URLLogger ¶
type URLLogger struct {
// contains filtered or unexported fields
}
func NewURLLogger ¶
func NewURLLogger() *URLLogger
func (*URLLogger) OnURLResponsive ¶
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 (d *URLScreenshotter) ID() string
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 (d *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.