f1950c2fe1
Fixes #3289. This commit adds back the bit-struct library because in the end, it is useful for some modules, especially pello's. It's small and it has a nice license, so why not. After all, it /is/ useful for quicky application headers. Eventually, should be replaced by StructFu, but that requires some doc work on my part to get that transition in place. This also adds pello's DNS fuzzer module which makes use of BitStruct to create sometimes malformed-on-purpose DNS headers. Tested against 3 different DNS servers, caused one to reboot, so I'd say it works.
15 lines
342 B
Ruby
15 lines
342 B
Ruby
# A Convenience to load all field classes and yaml handling.
|
|
# XXX: Pretty certian this monkeypatch isn't required in Metasploit.
|
|
|
|
if "a"[0].kind_of? Fixnum
|
|
unless Fixnum.methods.include? :ord
|
|
class Fixnum
|
|
def ord; self; end
|
|
end
|
|
end
|
|
end
|
|
|
|
require 'bit-struct/bit-struct'
|
|
require 'bit-struct/fields'
|
|
require 'bit-struct/yaml'
|