Use opts hash for adobe_pdf_embedded_exe

https://dev.metasploit.com/redmine/issues/8498
bug/bundler_fix
William Vu 2014-01-24 19:38:31 -06:00
parent 95c94cd42c
commit 47b9bfaffc
1 changed files with 18 additions and 2 deletions

View File

@ -74,7 +74,15 @@ class Metasploit3 < Msf::Exploit::Remote
startxrefs = pdf_objects[2]
root_obj = pdf_objects[3]
output = basic_social_engineering_exploit(xref_trailers,root_obj,stream,trailers,file_name,exe_name,startxrefs.last)
output = basic_social_engineering_exploit({
:xref_trailers => xref_trailers,
:root_obj => root_obj,
:stream => stream,
:trailers => trailers,
:file_name => file_name,
:exe_name => exe_name,
:startxref => startxrefs.last
})
print_status("Parsing Successful. Creating '#{datastore['FILENAME']}' file...")
file_create(output)
@ -165,7 +173,15 @@ class Metasploit3 < Msf::Exploit::Remote
end
def basic_social_engineering_exploit(xref_trailers,root_obj,stream,trailers,file_name,exe_name,startxref)
def basic_social_engineering_exploit(opts = {})
xref_trailers = opts[:xref_trailers]
root_obj = opts[:root_obj]
stream = opts[:stream]
trailers = opts[:trailers]
file_name = opts[:file_name]
exe_name = opts[:exe_name]
startxref = opts[:startxref]
file_name = file_name.split(/\//).pop.to_s