Documentation
¶
Index ¶
- type GlobalContext
- func (g *GlobalContext) AddCertificate(target string, certificate *x509.Certificate)
- func (g *GlobalContext) AddHeaderHost(host string)
- func (g *GlobalContext) AddRedirect(redirect string)
- func (g *GlobalContext) CertificateHostnames() []string
- func (g *GlobalContext) GetCertificateOccurrenceSnapshot() map[string][]string
- func (g *GlobalContext) GetCertificatesSnapshot() map[string]*x509.Certificate
- func (g *GlobalContext) HeaderHostnames() []string
- func (g *GlobalContext) IsReflectedCertificate(serial string) bool
- func (g *GlobalContext) MarkDynamicTarget(target string)
- func (g *GlobalContext) MarkHTTPReflectingTarget(target string)
- func (g *GlobalContext) MarkReflectedCertificate(serial string)
- func (g *GlobalContext) RedirectHostnames() []string
- func (g *GlobalContext) RegisterCertificate(certificate *x509.Certificate)
- func (g *GlobalContext) TargetIssuesRandomCerts(target string) bool
- func (g *GlobalContext) TargetReflectsHost(target string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalContext ¶
type GlobalContext struct {
Certificates map[string]*x509.Certificate
CertificateOccurrence map[string][]string
SearchHeaders bool
Whois whois.WHOISCache
DNSresolver dns.DNSResolver
DebugLog *debug.DebugLogger
Timeout time.Duration
UserAgent string
// contains filtered or unexported fields
}
func NewGlobalContext ¶
func NewGlobalContext(dnsResolver dns.DNSResolver) *GlobalContext
func (*GlobalContext) AddCertificate ¶
func (g *GlobalContext) AddCertificate(target string, certificate *x509.Certificate)
func (*GlobalContext) AddHeaderHost ¶
func (g *GlobalContext) AddHeaderHost(host string)
func (*GlobalContext) AddRedirect ¶
func (g *GlobalContext) AddRedirect(redirect string)
func (*GlobalContext) CertificateHostnames ¶
func (g *GlobalContext) CertificateHostnames() []string
func (*GlobalContext) GetCertificateOccurrenceSnapshot ¶
func (g *GlobalContext) GetCertificateOccurrenceSnapshot() map[string][]string
GetCertificateOccurrenceSnapshot returns a thread-safe snapshot of the certificate occurrence map
func (*GlobalContext) GetCertificatesSnapshot ¶
func (g *GlobalContext) GetCertificatesSnapshot() map[string]*x509.Certificate
GetCertificatesSnapshot returns a thread-safe snapshot of the certificates map
func (*GlobalContext) HeaderHostnames ¶
func (g *GlobalContext) HeaderHostnames() []string
func (*GlobalContext) IsReflectedCertificate ¶ added in v1.4.0
func (g *GlobalContext) IsReflectedCertificate(serial string) bool
IsReflectedCertificate reports whether the certificate with the given serial was flagged as a reflected (per-SNI dynamically issued) certificate.
func (*GlobalContext) MarkDynamicTarget ¶ added in v1.4.0
func (g *GlobalContext) MarkDynamicTarget(target string)
MarkDynamicTarget records that the server behind target issues a distinct certificate per SNI. Hostnames validated against such a target are reflections and must not be reported as findings.
func (*GlobalContext) MarkHTTPReflectingTarget ¶ added in v1.4.0
func (g *GlobalContext) MarkHTTPReflectingTarget(target string)
MarkHTTPReflectingTarget records that the server behind target reflects the requested Host back in its redirect (a catch-all), so redirect-based host discovery against it is not a real finding.
func (*GlobalContext) MarkReflectedCertificate ¶ added in v1.4.0
func (g *GlobalContext) MarkReflectedCertificate(serial string)
MarkReflectedCertificate records that the certificate with the given serial was issued in response to an unknown/random SNI and merely echoes that name. Names from such certificates must not be fed back into recon.
func (*GlobalContext) RedirectHostnames ¶
func (g *GlobalContext) RedirectHostnames() []string
func (*GlobalContext) RegisterCertificate ¶
func (g *GlobalContext) RegisterCertificate(certificate *x509.Certificate)
func (*GlobalContext) TargetIssuesRandomCerts ¶ added in v1.4.0
func (g *GlobalContext) TargetIssuesRandomCerts(target string) bool
TargetIssuesRandomCerts reports whether target was flagged as issuing a per-SNI (dynamic) certificate.
func (*GlobalContext) TargetReflectsHost ¶ added in v1.4.0
func (g *GlobalContext) TargetReflectsHost(target string) bool
TargetReflectsHost reports whether target was flagged as reflecting the requested Host into its HTTP redirects.