Documentation
¶
Index ¶
- type DebugLogger
- func (d *DebugLogger) CertRecon(certSerial string, targets, hostnames []string)
- func (d *DebugLogger) Close()
- func (d *DebugLogger) CrtLogResult(domain string, hostnames []string, err error)
- func (d *DebugLogger) HTTPRequest(target, host string, status int, title, redirect string, err error)
- func (d *DebugLogger) HeaderRecon(hostnames []string)
- func (d *DebugLogger) HostAdded(source, hostname string)
- func (d *DebugLogger) Iteration(number, maxEpochs, unscannedCount int)
- func (d *DebugLogger) Logf(format string, args ...interface{})
- func (d *DebugLogger) PTRResult(ip string, hostnames []string)
- func (d *DebugLogger) PlainHTTPRequest(target, host, port string, status int, title, redirect string, err error)
- func (d *DebugLogger) RedirectRecon(hostnames []string)
- func (d *DebugLogger) SNIRequest(target, sni string, cert *x509.Certificate, err error)
- func (d *DebugLogger) ScanConfig(targets, hosts []string, threads, epochs int, recon, crtlog, ptr bool)
- func (d *DebugLogger) TargetOffline(target string)
- func (d *DebugLogger) TargetOnline(target string)
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.