Documentation
¶
Index ¶
- func CalculateFaviconHash(iconBytes []byte) int32
- func CheckDNSHistoryAndMail(domain string, securityTrailsKey string, cdnChecker *CDNChecker, ...) ([]pkg.ResultCandidate, error)
- func Execute(ctx context.Context, opts *pkg.Options) error
- func ExtractMailRecords(domain string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
- func ExtractNonCDNCandidates(subdomains []string, cdnChecker *CDNChecker, threads int, timeout int) ([]pkg.ResultCandidate, error)
- func FetchFavicon(domain string, timeoutSec int) ([]byte, error)
- func QuerySecurityTrailsHistory(domain string, apiKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
- func ReadSubdomains(filePath string) ([]string, error)
- func ResolveSubdomains(hosts []string, threads int, timeoutSec int) (map[string][]string, error)
- func SearchCensysCertificates(domain string, censysID string, censysSecret string, cdnChecker *CDNChecker, ...) ([]pkg.ResultCandidate, error)
- func SearchCertificates(domain string, censysID string, censysSecret string, shodanKey string, ...) ([]pkg.ResultCandidate, error)
- func SearchFaviconQueries(domain string, hash int32, shodanKey string, fofaEmail string, fofaKey string, ...) ([]pkg.ResultCandidate, error)
- func SearchShodanCertificates(domain string, shodanKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
- type CDNChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFaviconHash ¶
CalculateFaviconHash computes Shodan-compatible 32-bit MurmurHash3 for favicon bytes.
func CheckDNSHistoryAndMail ¶
func CheckDNSHistoryAndMail(domain string, securityTrailsKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
CheckDNSHistoryAndMail combines historical DNS lookups and mail record analysis.
func ExtractMailRecords ¶
func ExtractMailRecords(domain string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
ExtractMailRecords queries MX and SPF TXT records that often point directly to origin subnets.
func ExtractNonCDNCandidates ¶
func ExtractNonCDNCandidates(subdomains []string, cdnChecker *CDNChecker, threads int, timeout int) ([]pkg.ResultCandidate, error)
ExtractNonCDNCandidates resolves subdomains and filters out CDN IP ranges.
func FetchFavicon ¶
FetchFavicon downloads the favicon.ico bytes from the target domain.
func QuerySecurityTrailsHistory ¶
func QuerySecurityTrailsHistory(domain string, apiKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
QuerySecurityTrailsHistory fetches historical A records from SecurityTrails.
func ReadSubdomains ¶
ReadSubdomains reads lines from an input file or piped standard input.
func ResolveSubdomains ¶
ResolveSubdomains queries DNS A records for each host using dnsx.
func SearchCensysCertificates ¶
func SearchCensysCertificates(domain string, censysID string, censysSecret string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
SearchCensysCertificates queries the Censys v2 Hosts API for certificates matching the target domain.
func SearchCertificates ¶
func SearchCertificates(domain string, censysID string, censysSecret string, shodanKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
SearchCertificates aggregates certificate origin discovery across available engines.
func SearchFaviconQueries ¶
func SearchFaviconQueries(domain string, hash int32, shodanKey string, fofaEmail string, fofaKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
SearchFaviconQueries searches Shodan and FOFA for hosts matching the favicon hash.
func SearchShodanCertificates ¶
func SearchShodanCertificates(domain string, shodanKey string, cdnChecker *CDNChecker, timeoutSec int) ([]pkg.ResultCandidate, error)
SearchShodanCertificates queries the Shodan API for hosts serving an SSL certificate matching the domain.
Types ¶
type CDNChecker ¶
type CDNChecker struct {
// contains filtered or unexported fields
}
CDNChecker wraps the ProjectDiscovery cdncheck client for IP filtering.
func NewCDNChecker ¶
func NewCDNChecker() (*CDNChecker, error)
NewCDNChecker instantiates a client pre-loaded with known CDN and WAF IP ranges.
func (*CDNChecker) CheckIP ¶
func (c *CDNChecker) CheckIP(ipStr string) (bool, string, error)
CheckIP determines whether an IP belongs to a CDN or WAF provider.
func (*CDNChecker) FilterCandidateIPs ¶
func (c *CDNChecker) FilterCandidateIPs(ips []string) ([]string, map[string]string)
FilterCandidateIPs takes a list of IPs and separates non-CDN IPs from CDN IPs.