debug

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugLogger

type DebugLogger struct {
	// contains filtered or unexported fields
}

DebugLogger writes structured debug output to a file. All methods are nil-receiver safe — callers never need guards.

func NewDebugLogger

func NewDebugLogger(filename string) (*DebugLogger, error)

NewDebugLogger creates a DebugLogger that writes to the given file path.

func NopLogger

func NopLogger() *DebugLogger

NopLogger returns nil, which is a valid no-op DebugLogger.

func (*DebugLogger) CertRecon

func (d *DebugLogger) CertRecon(certSerial string, targets, hostnames []string)

CertRecon logs hostnames discovered from a certificate during recon.

func (*DebugLogger) Close

func (d *DebugLogger) Close()

Close flushes and closes the debug log file.

func (*DebugLogger) CrtLogResult added in v1.4.0

func (d *DebugLogger) CrtLogResult(domain string, hostnames []string, err error)

CrtLogResult logs crt.name query results for a domain.

func (*DebugLogger) HTTPRequest

func (d *DebugLogger) HTTPRequest(target, host string, status int, title, redirect string, err error)

HTTPRequest logs an HTTP request and its result.

func (*DebugLogger) HeaderRecon

func (d *DebugLogger) HeaderRecon(hostnames []string)

HeaderRecon logs hostnames discovered from HTTP response headers.

func (*DebugLogger) HostAdded

func (d *DebugLogger) HostAdded(source, hostname string)

HostAdded logs when a new host is added to the scan queue.

func (*DebugLogger) Iteration

func (d *DebugLogger) Iteration(number, maxEpochs, unscannedCount int)

Iteration logs the start of a scan iteration.

func (*DebugLogger) Logf

func (d *DebugLogger) Logf(format string, args ...interface{})

Logf writes a general-purpose debug line.

func (*DebugLogger) PTRResult

func (d *DebugLogger) PTRResult(ip string, hostnames []string)

PTRResult logs reverse DNS (PTR) lookup results for a single IP.

func (*DebugLogger) PlainHTTPRequest added in v1.4.0

func (d *DebugLogger) PlainHTTPRequest(target, host, port string, status int, title, redirect string, err error)

PlainHTTPRequest logs a plaintext HTTP request to a target IP and its result.

func (*DebugLogger) RedirectRecon

func (d *DebugLogger) RedirectRecon(hostnames []string)

RedirectRecon logs hostnames discovered from HTTP redirects.

func (*DebugLogger) SNIRequest

func (d *DebugLogger) SNIRequest(target, sni string, cert *x509.Certificate, err error)

SNIRequest logs an SNI TLS handshake request and its result.

func (*DebugLogger) ScanConfig

func (d *DebugLogger) ScanConfig(targets, hosts []string, threads, epochs int, recon, crtlog, ptr bool)

ScanConfig logs the scan configuration.

func (*DebugLogger) TargetOffline

func (d *DebugLogger) TargetOffline(target string)

TargetOffline logs that a target is unreachable.

func (*DebugLogger) TargetOnline

func (d *DebugLogger) TargetOnline(target string)

TargetOnline logs that a target is reachable.

Jump to

Keyboard shortcuts

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