v3.4.12 Latest Latest

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 18 Imported by: 0




View Source
const (
	// UserAgent is the default user agent used by Amass during HTTP requests.
	UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"

	// Accept is the default HTTP Accept header value used by Amass.
	Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"

	// AcceptLang is the default HTTP Accept-Language header value used by Amass.
	AcceptLang = "en-US,en;q=0.8"


This section is empty.


func CheckCookie

func CheckCookie(urlString string, cookieName string) bool

CheckCookie checks if a cookie exists in the cookie jar for a given host

func ClientCountryCode

func ClientCountryCode() string

ClientCountryCode returns the country code for the public-facing IP address for the host of the process.

func CopyCookies

func CopyCookies(src string, dest string)

CopyCookies copies cookies from one domain to another. Some of our data sources rely on shared auth tokens and this avoids sending extra requests to have the site reissue cookies for the other domains.

func PullCertificateNames

func PullCertificateNames(addr string, ports []int) []string

PullCertificateNames attempts to pull a cert from one or more ports on an IP.

func RequestWebPage

func RequestWebPage(urlstring string, body io.Reader, hvals map[string]string, uid, secret string) (string, error)

RequestWebPage returns a string containing the entire response for the urlstring parameter when successful.


This section is empty.

Jump to

Keyboard shortcuts

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