diff --git a/modules/post/windows/manage/persistence_exe.rb b/modules/post/windows/manage/persistence_exe.rb index 13e673d131..59acb4e2f6 100644 --- a/modules/post/windows/manage/persistence_exe.rb +++ b/modules/post/windows/manage/persistence_exe.rb @@ -217,6 +217,6 @@ class MetasploitModule < Msf::Post #------------------------------------------------------------------------------- def create_payload_from_file(exec) print_status("Reading Payload from file #{exec}") - ::IO.read(exec) + File.binread(exec) end end