Crowbar::Rules::ZipRule
Inherits Crowbar::Rule < Reference < Object
Structure-preserving rule for ZIP (PKZip) archives. Preserves the 4-byte local file header signature ("PK\x03\x04") and field alignment, while mutating compression methods, flags, filenames, extra fields, and compressed payloads, and automatically synchronizing CRC32 and payload lengths.
Constants
ZIP_EOCD_MAGIC = Bytes[80, 75, 5, 6]
ZIP_LOCAL_MAGIC = Bytes[80, 75, 3, 4]
Instance methods
Applies a structure-preserving transformation to the buffer
description
SourceChecks whether the buffer matches the format handled by this rule
name
Source