Skip to content

Commit b199820

Browse files
committed
init exe as nil instead of ''
1 parent 265c178 commit b199820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/exe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_custom_exe(path = nil)
4242
path ||= datastore['EXE::Custom']
4343
print_status("Using custom payload #{path}, RHOST and RPORT settings will be ignored!")
4444
datastore['DisablePayloadHandler'] = true
45-
exe = ''
45+
exe = nil
4646
::File.open(path,'rb') {|f| exe = f.read(f.stat.size)}
4747
exe
4848
end

0 commit comments

Comments
 (0)