2008-09-24 22:14:33 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module MachParsey
|
|
|
|
|
|
|
|
class MachError < ::RuntimeError
|
|
|
|
end
|
|
|
|
|
|
|
|
class MachParseError < MachError
|
|
|
|
end
|
|
|
|
|
|
|
|
class MachHeaderError < MachParseError
|
|
|
|
end
|
|
|
|
|
|
|
|
class ProgramHeaderError < MachParseError
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoundsError < MachError
|
|
|
|
end
|
|
|
|
|
|
|
|
#class WtfError < MachError
|
|
|
|
#end
|
|
|
|
|
|
|
|
class FatError < ::RuntimeError
|
|
|
|
end
|
|
|
|
|
|
|
|
class FatParseError < FatError
|
|
|
|
end
|
|
|
|
|
|
|
|
class FatHeaderError < FatParseError
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|