@@ -47,9 +47,9 @@ def initialize(info = {})
47
47
register_options (
48
48
[
49
49
OptString . new ( 'FILENAME' , [ true , 'The file name.' , 'msf.webarchive' ] ) ,
50
- OptString . new ( 'URLS' , [ true , 'A space-delimited list of URLs to UXSS (eg http://browserscan. rapid7.com/ ' ] ) ,
50
+ OptString . new ( 'URLS' , [ true , 'A space-delimited list of URLs to UXSS (eg http://rapid7.com http://example.com ' ] ) ,
51
51
OptString . new ( 'URIPATH' , [ false , 'The URI to receive the UXSS\'ed data' , '/grab' ] ) ,
52
- OptString . new ( 'DOWNLOAD_PATH' , [ true , 'The path to download the webarhive .' , '/msf.webarchive' ] ) ,
52
+ OptString . new ( 'DOWNLOAD_PATH' , [ true , 'The path to download the webarchive .' , '/msf.webarchive' ] ) ,
53
53
OptString . new ( 'URLS' , [ true , 'The URLs to steal cookie and form data from.' , '' ] ) ,
54
54
OptString . new ( 'FILE_URLS' , [ false , 'Additional file:// URLs to steal.' , '' ] ) ,
55
55
OptBool . new ( 'STEAL_COOKIES' , [ true , "Enable cookie stealing." , true ] ) ,
@@ -768,8 +768,11 @@ def find_cached_scripts
768
768
if script_uri . relative?
769
769
url = page_uri + url
770
770
end
771
+ if url . to_s . starts_with? '//'
772
+ url = "#{ page_uri . scheme } :#{ url } "
773
+ end
771
774
io = open ( url )
772
- rescue URI ::InvalidURIError => e
775
+ rescue URI ::InvalidURIError , OpenURI :: HTTPError
773
776
next
774
777
end
775
778
0 commit comments