Use opts hash for adobe_pdf_embedded_exe
https://dev.metasploit.com/redmine/issues/8498bug/bundler_fix
parent
95c94cd42c
commit
47b9bfaffc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue