post/windows/manage/persistence_exe: Replace IO.read with File.binread

This commit is contained in:
Brendan Coles
2022-03-05 13:24:55 +00:00
parent e9393e471c
commit ef4e7b2165
@@ -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