Documentation
¶
Overview ¶
Package dns handles all of the data structures and logic required to interact with DNS data.
Index ¶
- func DetectDomainTakeover(targets []string, fingerprintsPath string, onlySuccessful bool, setHTTPS bool, ...) (*osintscan.DomainTakeoverReport, error)
- func GetDomainDNSRecords(ctx context.Context, domain string) (osintscan.DnsRecordsReport, error)
- func GetReverseForwardDNSLookup(fqdn string) osintscan.DnsReverseForwardReport
- type CertificateRecord
- type CertsReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectDomainTakeover ¶ added in v0.0.3
func GetDomainDNSRecords ¶
GetDomainDNSRecords queries DNS for all records for a given domain. It returns a RecordsReport struct containing all records that were and any non-fatal errors that occurred.
func GetReverseForwardDNSLookup ¶ added in v0.0.10
func GetReverseForwardDNSLookup(fqdn string) osintscan.DnsReverseForwardReport
Types ¶
type CertificateRecord ¶
type CertificateRecord struct {
IssuerCAID int `json:"issuer_ca_id" yaml:"issuer_ca_id"`
IssuerName string `json:"issuer_name" yaml:"issuer_name"`
CommonName string `json:"common_name" yaml:"common_name"`
NameValue string `json:"name_value" yaml:"name_value"`
ID int64 `json:"id" yaml:"id"`
EntryTimestamp string `json:"entry_timestamp" yaml:"entry_timestamp"`
NotBefore string `json:"not_before" yaml:"not_before"`
NotAfter string `json:"not_after" yaml:"not_after"`
SerialNumber string `json:"serial_number" yaml:"serial_number"`
ResultCount int `json:"result_count" yaml:"result_count"`
}
CertificateRecord represents all of the information for a single x509 certificate record.
type CertsReport ¶
type CertsReport struct {
Domain string `json:"domain" yaml:"domain"`
Certificates []CertificateRecord `json:"certificates" yaml:"certificates"`
Errors []string `json:"errors" yaml:"errors"`
}
CertsReport represents the report of all certificates for a given domain including all non-fatal errors that occurred.
func GetDomainCerts ¶
func GetDomainCerts(ctx context.Context, domain string) (CertsReport, error)
GetDomainCerts queries crt.sh for all certificates for a given domain. It returns a CertsReport struct containing all certificates and any errors that occurred.
Click to show internal directories.
Click to hide internal directories.