agents

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 BaseFilenameFromURL(s string) string

func Gorequest

func Gorequest(o core.Options) *gorequest.SuperAgent

func Green

func Green(s string) string

func HostAndPortToURL

func HostAndPortToURL(host string, port int, protocol string) string

func RandomIPv4Address

func RandomIPv4Address() string

func RandomUserAgent

func RandomUserAgent() string

func Red

func Red(s string) string

func URLEscape

func URLEscape(s string) string

func Yellow

func Yellow(s string) 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 FingerprintRegexp struct {
	Regexp *regexp.Regexp
}

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)

func (*TCPPortScanner) Register

func (a *TCPPortScanner) Register(s *core.Session) error

type URLLogger

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

func NewURLLogger

func NewURLLogger() *URLLogger

func (*URLLogger) ID

func (d *URLLogger) ID() string

func (*URLLogger) OnURLResponsive

func (a *URLLogger) OnURLResponsive(url string)

func (*URLLogger) Register

func (a *URLLogger) Register(s *core.Session) error

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)

func (*URLPublisher) Register

func (a *URLPublisher) Register(s *core.Session) error

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)

func (*URLRequester) Register

func (a *URLRequester) Register(s *core.Session) error

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)

func (*URLScreenshotter) Register

func (a *URLScreenshotter) Register(s *core.Session) error

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)

func (*URLTakeoverDetector) Register added in v1.4.0

func (a *URLTakeoverDetector) Register(s *core.Session) error

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 (*URLTechnologyFingerprinter) OnURLResponsive added in v1.4.0

func (a *URLTechnologyFingerprinter) OnURLResponsive(url string)

func (*URLTechnologyFingerprinter) Register added in v1.4.0

func (a *URLTechnologyFingerprinter) Register(s *core.Session) error

Jump to

Keyboard shortcuts

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