@@ -225,7 +225,7 @@ def setup
225225 }
226226
227227 function bodyOnLoad() {
228- var detected_version = window. os_detect.getVersion();
228+ var detected_version = os_detect.getVersion();
229229 //#{ js_debug ( 'detected_version' ) }
230230 report_and_get_exploits(detected_version);
231231 } // function bodyOnLoad
@@ -851,7 +851,7 @@ def client_matches_module_spec?(client_str, module_spec)
851851 return !! client_str . match ( module_spec )
852852 when ::Array
853853 return !! exploit_spec . map { |spec |
854- client_matches_module_spec? ( client_str , spec )
854+ client_matches_module_spec? ( client_str , spec )
855855 } . include? ( true )
856856 end
857857
@@ -935,7 +935,6 @@ def record_detection(cli, request)
935935 detected_version = Rex ::Text . decode_base64 ( Rex ::Text . uri_decode ( detected_version ) )
936936 print_status ( "JavaScript Report: #{ detected_version } " )
937937
938-
939938 ( os_name , os_vendor , os_flavor , os_device , os_sp , os_lang , arch , ua_name , ua_ver ) = detected_version . split ( ':' )
940939
941940 if framework . db . active
@@ -947,7 +946,7 @@ def record_detection(cli, request)
947946 note_data [ 'os.version' ] = os_sp if os_sp != 'undefined'
948947 note_data [ 'os.language' ] = os_lang if os_lang != 'undefined'
949948 note_data [ 'os.arch' ] = arch if arch != 'undefined'
950- note_data [ 'os.certainty' ] = '0.7'
949+ note_data [ 'os.certainty' ] = '0.7'
951950 print_status ( "Reporting: #{ note_data . inspect } " )
952951
953952 # Reporting stuff isn't really essential since we store all
0 commit comments