Add HD's optimization for faster DLL reading (ala the x86 counterpart).

git-svn-id: file:///home/svn/framework3/trunk@7731 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Stephen Fewer
2009-12-07 12:58:28 +00:00
parent 7d3ff93ec9
commit 0b8917a39e
@@ -51,7 +51,7 @@ module Payload::Windows::ReflectiveDllInject_x64
offset = 0
begin
File.open( library_path, "rb" ) { |f| dll += f.read }
::File.open( library_path, "rb" ) { |f| dll += f.read(f.stat.size) }
pe = Rex::PeParsey::Pe.new( Rex::ImageSource::Memory.new( dll ) )