Versions in this module Expand all Collapse all v1 v1.0.0 Nov 7, 2024 Changes in this version + func CompareDates(date1, date2 time.Time) bool + func ConvertToStringSlice(rawMsg json.RawMessage) []string + func ConvertURLToDomain(inputURL string) string + func CreateFileRequest(src, content, fileType string) types.FileRequest + func CurrentDate() time.Time + func ExtractTitle(doc *html.Node) string + func GenerateID() string + func Get24HoursAgo() time.Time + func GetCurrentTime() time.Time + func IPNetsToStrings(ipnets []*net.IPNet) []string + func IPsToStrings(ips []net.IP) []string + func IsFont(node *html.Node) bool + func IsLocalURL(input string) bool + func IsNumeric(s string) bool + func IsStylesheet(node *html.Node) bool + func MD5(data string) string + func NewSecret(regex string) string + func NormalizeURL(input string) string + func ParseQuery(query string) (map[string][]string, error) + func ParseUint(input string) (uint, error) + func ProcessFontNode(node *html.Node) types.FileRequest + func ProcessLinkNode(node *html.Node) types.FileRequest + func ProcessScriptNode(node *html.Node) types.FileRequest + func ProcessStyleNode(node *html.Node) types.FileRequest + func SHA1(data string) string + func SHA256(data string) string + func SafeString(s string) string + func StripProtocol(url string) string + func TraverseHTML(node *html.Node, fn func(*html.Node)) + func URIsToStrings(uris []*url.URL) []string + func ValidateURL(input string) bool + type FileType string + const ApplicationJavascript + const Font + const TextCSS + const XHR + type Match struct + Line int + Match string + Source string + func GenericScan(rule types.Rule, script types.FileRequest) []Match + type RegexPattern struct + Name string + Pattern string + type RegexReturn struct + Description string + Matches []Match + Name string