diff --git a/modules/auxiliary/gather/apple_safari_webarchive_uxss.rb b/modules/auxiliary/gather/apple_safari_webarchive_uxss.rb index 79dec6cbf0..84314251b6 100644 --- a/modules/auxiliary/gather/apple_safari_webarchive_uxss.rb +++ b/modules/auxiliary/gather/apple_safari_webarchive_uxss.rb @@ -47,7 +47,7 @@ class Metasploit3 < Msf::Auxiliary register_options( [ OptString.new('FILENAME', [ true, 'The file name.', 'msf.webarchive']), - OptString.new('URLS', [ true, 'A space-delimited list of URLs to UXSS (eg http://browserscan.rapid7.com/']), + OptString.new('URLS', [ true, 'A space-delimited list of URLs to UXSS (eg http://rapid7.com http://example.com']), OptString.new('URIPATH', [false, 'The URI to receive the UXSS\'ed data', '/grab']), OptString.new('DOWNLOAD_PATH', [ true, 'The path to download the webarhive.', '/msf.webarchive']), OptString.new('URLS', [ true, 'The URLs to steal cookie and form data from.', '']), @@ -768,8 +768,11 @@ class Metasploit3 < Msf::Auxiliary if script_uri.relative? url = page_uri + url end + if url.to_s.starts_with? '//' + url = "#{page_uri.scheme}:"+url + end io = open(url) - rescue URI::InvalidURIError => e + rescue URI::InvalidURIError, OpenURI::HTTPError next end