Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreakFusedItems ¶
Returns: a string slice containing subdomains broken if fused Example: en.wikipedia.org0x4f.medium.com gives [en.wikipedia.org 0x4f.medium.com] Inputs: text (string) -> The text to parse
func DomainsOnly ¶
Returns: only the domains (example.com) as a list of strings Inputs: text (string) -> The text to parse breakFused (bool) -> try and split fused domains (e.g. 0x4f.inapple.com becomes [0x4f.in apple.com])
func ListIPs ¶
Returns: only a list of IP addresses as strings, where each octet is from 0 to 255 Inputs: text (string) -> The text to parse
func Resolve ¶
Returns: a list containing only items (subdomains or domains) that resolve when pinged (using LookupHost with local DNS settings and waitgroups) Example: [0x4f.in play.google.com fakesite123131231.dev] gives [0x4f.in play.google.com] Inputs: [item1 item2 item3...] ([]string) -> The list of items to resolve
func SubdomainsOnly ¶
Returns: only the subdomains (subdomain.example.com) as a list of strings Inputs: text (string) -> The text to parse breakFused (bool) -> try and split fused subdomains (e.g. www.0x4f.iniforgot.apple.com becomes [www.0x4f.in iforgot.apple.com])
Types ¶
type SubAndDom ¶
func SubdomainAndDomainPair ¶
Returns: a struct containing a subdomain and its domain {subdomain: subdomain.example.com, domain: example.com} as a list of a struct of strings Inputs: text (string) -> The text to parse keepDomains (bool) -> return domain even if domain does not contain a subdomain breakFused (bool) -> try and split fused subdomains and domains (e.g. www.0x4f.iniforgot.apple.com becomes [www.0x4f.in iforgot.apple.com])
Click to show internal directories.
Click to hide internal directories.