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:
@@ -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 ) )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user