2008-02-09 04:35:21 +00:00
|
|
|
#!/usr/bin/env ruby
|
2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
2008-02-09 04:35:21 +00:00
|
|
|
|
2006-04-15 20:26:41 +00:00
|
|
|
module Rex
|
|
|
|
module PeParsey
|
|
|
|
|
|
|
|
class PeError < ::RuntimeError
|
|
|
|
end
|
|
|
|
|
|
|
|
class ParseError < PeError
|
|
|
|
end
|
|
|
|
|
|
|
|
class DosHeaderError < ParseError
|
|
|
|
end
|
|
|
|
|
|
|
|
class FileHeaderError < ParseError
|
|
|
|
end
|
|
|
|
|
|
|
|
class OptionalHeaderError < ParseError
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoundsError < PeError
|
|
|
|
end
|
|
|
|
|
|
|
|
class WtfError < PeError
|
|
|
|
end
|
|
|
|
|
2008-11-10 21:18:12 +00:00
|
|
|
class SkipError < PeError
|
|
|
|
end
|
|
|
|
|
|
|
|
end end
|