Module: PEdump::Unpacker
- Defined in:
- lib/pedump/unpacker.rb,
lib/pedump/unpacker/upx.rb,
lib/pedump/unpacker/aspack.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.find(io) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/pedump/unpacker.rb', line 7 def find io if io.is_a?(String) return File.open(io,"rb"){ |f| find(f) } end pedump = PEdump.new(io) packer = Array(pedump.packers).first return nil unless packer case packer.name when /UPX/ UPX when /ASPack/i ASPack else nil end end |