dns

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package dns handles all of the data structures and logic required to interact with DNS data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectDomainTakeover added in v0.0.3

func DetectDomainTakeover(targets []string, fingerprintsPath string, onlySuccessful bool, setHTTPS bool, timeout int) (*osintscan.DomainTakeoverReport, error)

func GetDomainDNSRecords

func GetDomainDNSRecords(ctx context.Context, domain string) (osintscan.DnsRecordsReport, error)

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 GetDomainSubdomainsBrute added in v0.0.7

func GetDomainSubdomainsBrute(ctx context.Context, domain string, subdomainList []string, parallelThreads int, recursiveDepth int, timeout int) (osintscan.DnsSubenumReport, error)

GetDomainSubdomainsBrute queries subfinder for all subdomains for a given domain. It returns a SubdomainsEnumReport struct containing all subdomains and any errors that occurred.

func GetDomainSubdomainsPassive added in v0.0.7

func GetDomainSubdomainsPassive(ctx context.Context, domain string) (osintscan.DnsSubenumReport, error)

GetDomainSubdomainsPassive queries subfinder for all subdomains for a given domain. It returns a SubdomainsEnumReport struct containing all subdomains and any errors that occurred.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL