fix exe template

don't pass an emtpy string for templates
this causes read errors. pass no value instead
bug/bundler_fix
David Maloney 2014-02-05 12:10:14 -06:00
parent b3db623277
commit 1227a47342
1 changed files with 6 additions and 5 deletions

View File

@ -144,11 +144,12 @@ module Msf
# @return [Hash] The hash needed for generating an executable format
def exe_options
{
inject: keep,
template_path: File.dirname(template),
template: File.basename(template)
}
opts = { inject: keep }
unless template.blank?
opts[:template_path] = File.dirname(template)
opts[:template] = File.basename(template)
end
opts
end
# @param shellcode [String] the processed shellcode to be formatted