modules

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DNSSECCheck

func DNSSECCheck(domain string) (bool, error)

DNSSECCheck checks DNSSEC status for the given domain.

func GetAAAARecords

func GetAAAARecords(url string) ([]string, error)

GetAAAARecords retrieves IPv6 AAAA records for the given URL.

func GetARecords

func GetARecords(url string) ([]string, error)

GetARecords retrieves IPv4 A records for the given URL.

func GetCNAME

func GetCNAME(url string) ([]string, error)

GetCNAME retrieves CNAME records associated with the given URL.

func GetCertificateWebsite

func GetCertificateWebsite(url string, port int) ([]*x509.Certificate, error)

GetCertificateWebsite returns the certificate of a website

func GetMXRecords

func GetMXRecords(url string) ([]string, error)

GetMXRecords retrieves MX (Mail Exchange) records for the given URL.

func GetNSRecords

func GetNSRecords(url string) ([]string, error)

GetNSRecords retrieves NS (Name Server) records for the given URL.

func GetPTRRecord

func GetPTRRecord(ip string) (string, error)

GetPTRRecord retrieves PTR (reverse DNS) record for a given IP.

func GetTXTRecords

func GetTXTRecords(url string) ([]string, error)

GetTXTRecords retrieves TXT records (SPF, DKIM, DMARC, etc.).

func ScanWhois

func ScanWhois(domain string) (whoisparser.WhoisInfo, error)

ScanWhois scans the whois information of a domain

Types

type CertificateModule

type CertificateModule struct{}

func (*CertificateModule) Name

func (m *CertificateModule) Name() string

func (*CertificateModule) Run

func (m *CertificateModule) Run(job entities.JobModel) (interface{}, error)

type DNSModule

type DNSModule struct{}

func (*DNSModule) Name

func (m *DNSModule) Name() string

func (*DNSModule) Run

func (m *DNSModule) Run(job entities.JobModel) (interface{}, error)

type DNSResults

type DNSResults struct {
	CNAME       []string
	ARecords    []string
	AAAARecords []string
	MXRecords   []string
	NSRecords   []string
	TXTRecords  []string
	PTRRecord   string
	DNSSEC      bool
}

DNSResults holds comprehensive DNS scan results.

type HTTPResponse

type HTTPResponse struct {
	StatusCode int
	Headers    http.Header
}

type HeaderModule

type HeaderModule struct{}

func (*HeaderModule) Name

func (m *HeaderModule) Name() string

func (*HeaderModule) Run

func (m *HeaderModule) Run(job entities.JobModel) (interface{}, error)

type IPLookupModule

type IPLookupModule struct{}

IPLookupModule implements LookupModule

func (*IPLookupModule) Name

func (m *IPLookupModule) Name() string

func (*IPLookupModule) Run

func (m *IPLookupModule) Run(job entities.JobModel) (interface{}, error)

type IPRangeLookupModule

type IPRangeLookupModule struct{}

IPRangeLookupModule implements LookupModule

func (*IPRangeLookupModule) Name

func (m *IPRangeLookupModule) Name() string

func (*IPRangeLookupModule) Run

func (m *IPRangeLookupModule) Run(job entities.JobModel) (interface{}, error)

type WhoisModule

type WhoisModule struct{}

func (*WhoisModule) Name

func (m *WhoisModule) Name() string

func (*WhoisModule) Run

func (m *WhoisModule) Run(job entities.JobModel) (interface{}, error)

Jump to

Keyboard shortcuts

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