Versions in this module Expand all Collapse all v1 v1.0.2 Apr 18, 2024 v1.0.1 Jul 19, 2023 Changes in this version + const ReuseNone + const ReuseTransport + const ReuseTransportAndClient + const StatusCompleted + const StatusDeadline + const StatusFailed + const StatusNotReachable + const StatusProxyError + const StatusRunning + const StatusSkipped + const StatusWaiting + var ClientFactory = func(transport *http.Transport, timeout time.Duration) *http.Client + var InsecureTransportFactory = func(proxy *url.URL, timeout time.Duration) *http.Transport + func AppendUnique(slice []string, elements ...string) []string + func DeadlineReached(deadline time.Time) bool + func Equals(s1 []string, s2 []string) bool + func Execute(cmd string, args []string) error + func ExtractHostPort(target *url.URL) (string, int) + func ExtractHtmlTitle(body []byte) string + func Filter(input []string, filter func(string) bool) []string + func FormattedHeader(headers http.Header) string + func GetSubjectAlternativeNames(address string, port int, dialTimeout time.Duration) ([]string, error) + func HashSha1(data []byte, separator string) string + func HttpsIndicated(resp *http.Response, respBody []byte) bool + func InsecureTlsConfigFactory() *tls.Config + func IsElevated() bool — linux/amd64, windows/amd64 + func IsValidAddress(s string) bool + func IsValidExecutable(path string, args ...string) error + func IsValidFile(path string) error + func IsValidFolder(path string) error + func IsValidHostname(hostname string) bool + func IsValidIp(s string) bool + func IsValidIpRange(s string) bool + func IsValidIpV4(s string) bool + func IsValidIpV6(s string) bool + func Map(slice []string, fn func(string) string) []string + func ProxyStringToUrl(proxy string) (*url.URL, error) + func ReadBody(response *http.Response) (body []byte, encoding string, err error) + func RemoveFromSlice(list []string, s string) []string + func ResolvesToHostname(ip string, hostname string) bool + func ResolvesToIp(hostname string, expectedIp string) bool + func Reverse(input []string) + func SameEndpoint(url *url.URL, endpointIp string, endpointPort int) bool + func SameScope(urlToCheck *url.URL, referenceUrl *url.URL) bool + func SanitizeFilename(raw string, placeholder string) string + func Shuffle(strings []string) []string + func StacktraceIndented(indent string) string + func StrContained(candidate string, slices ...[]string) bool + func SubstrContained(candidate string, slices ...[]string) bool + func TitleFirstLetter(s string) string + func TrimToLower(slice []string) []string + func UniqueStrings(elements []string) []string + func UrlToRelative(path string) string + func ValidOrEmptyCredentials(domain string, user string, password string) bool + type HttpFingerprint struct + HtmlLen int + HtmlTitle string + RespUrl string + ResponseCode int + func NewHttpFingerprint(respUrl string, responseCode int, htmlTitle string, htmlContent string) *HttpFingerprint + func (f *HttpFingerprint) KnownIn(knownFingerprints map[string]*HttpFingerprint, lengthVariability int) (string, bool) + func (f *HttpFingerprint) Similar(f2 *HttpFingerprint, lengthVariability int) bool + func (f *HttpFingerprint) String() string + type Logger interface + Debugf func(format string, v ...interface{}) + Errorf func(format string, v ...interface{}) + Infof func(format string, v ...interface{}) + Warningf func(format string, v ...interface{}) + type Requester struct + func NewRequester(reuseMode int, userAgent string, ntlmDomain string, ntlmUser string, ...) *Requester + func (r *Requester) Get(url_ string, vhost string) (resp *http.Response, redirects int, auth string, err error) + func (r *Requester) GetCookies(url_ string) []*http.Cookie + type TaggedLogger struct + func NewTaggedLogger(logger Logger, tag string) *TaggedLogger + func (l *TaggedLogger) Debugf(format string, v ...interface{}) + func (l *TaggedLogger) Errorf(format string, v ...interface{}) + func (l *TaggedLogger) Infof(format string, v ...interface{}) + func (l *TaggedLogger) Warningf(format string, v ...interface{}) + type TestLogger struct + func NewTestLogger() *TestLogger + func (l *TestLogger) Debugf(format string, v ...interface{}) + func (l *TestLogger) Errorf(format string, v ...interface{}) + func (l *TestLogger) Infof(format string, v ...interface{}) + func (l *TestLogger) Warningf(format string, v ...interface{})