class

Crowbar::Rules::DNSRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for DNS wire-format packets (RFC 1035). Parses 12-byte DNS header and question sections, maintaining valid length-prefixed domain label encoding while mutating IDs, flags, query types, counts, or label bytes.

Instance methods

apply(context : Context, buffer : Buffer) : Bool

Applies a structure-preserving transformation to the buffer

Source
description
Source
match?(buffer : Buffer) : Bool

Checks whether the buffer matches the format handled by this rule

Source
name
Source