Skip to content

Commit 0e121df

Browse files
committed
Need a default template
The set_template_default actually needs the second argument, otherwise we hit a RuntimeError.
1 parent aaea730 commit 0e121df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/util/exe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ def self.to_linux_x86_elf(framework, code, opts = {})
995995
# Use set_template_default to normalize the :template key. It will just end up doing
996996
# opts[:template] = File.join(opts[:template_path], opts[:template])
997997
# for us, check if the file exists.
998-
set_template_default(opts)
998+
set_template_default(opts, 'template_x86_linux.bin')
999999

10001000
# If this isn't our normal template, we have to do some fancy
10011001
# header patching to mark the .text section rwx before putting our

0 commit comments

Comments
 (0)