class
Crowbar::Rules::PacketRule
- Crowbar::Rules::PacketRule
- Crowbar::Rule
- Reference
- Object
Overview
Structure-preserving rule for raw network packets (IPv4, TCP, UDP) and PCAP capture traces. Automatically maintains RFC 791 16-bit Internet Header Checksums, Total Length, and UDP length fields, while fuzzing ports, sequence numbers, TCP flags, TTL, fragmentation offsets, IP options, and transport payloads.
Defined in:
crowbar/rules/packet.crConstant Summary
-
PCAP_MAGIC_BE =
Bytes[161, 178, 195, 212] -
PCAP_MAGIC_LE =
Bytes[212, 195, 178, 161]
Instance Method Summary
-
#apply(context : Context, buffer : Buffer) : Bool
Applies a structure-preserving transformation to the buffer
- #description : String
-
#match?(buffer : Buffer) : Bool
Checks whether the buffer matches the format handled by this rule
- #name : String
- #recalculate_ip_checksum(buffer : Buffer, base_off : Int32, ihl : Int32)
Instance methods inherited from class Crowbar::Rule
apply(context : Context, buffer : Buffer) : Bool
apply,
description : String
description,
match?(buffer : Buffer) : Bool
match?,
name : String
name,
targets(*targets : Symbol)
targets,
weight : Float64
weight,
weight=(weight : Float64)
weight=
Constructor methods inherited from class Crowbar::Rule
new(weight : Float64 = 1.0)
new
Instance Method Detail
Description copied from class Crowbar::Rule
Applies a structure-preserving transformation to the buffer
Description copied from class Crowbar::Rule
Checks whether the buffer matches the format handled by this rule