fix exe template
don't pass an emtpy string for templates this causes read errors. pass no value insteadbug/bundler_fix
parent
b3db623277
commit
1227a47342
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue