File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/msf/core/exploit/remote Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ def get_detection_html(user_agent)
362
362
<%= js_os_detect %>
363
363
<%= js_ajax_post %>
364
364
<%= js_misc_addons_detect %>
365
- <%= js_ie_addons_detect if os.match(/^Windows/ ) and client == HttpClients::IE %>
365
+ <%= js_ie_addons_detect if os.match(OperatingSystems::Match::WINDOWS ) and client == HttpClients::IE %>
366
366
367
367
function objToQuery(obj) {
368
368
var q = [];
@@ -388,7 +388,7 @@ def get_detection_html(user_agent)
388
388
"<%=REQUIREMENT_KEY_SET[:flash]%>" : window.misc_addons_detect.getFlashVersion()
389
389
};
390
390
391
- <% if os.match(/^Windows/ ) and client == HttpClients::IE %>
391
+ <% if os.match(OperatingSystems::Match::WINDOWS ) and client == HttpClients::IE %>
392
392
d['<%=REQUIREMENT_KEY_SET[:office]%>'] = window.ie_addons_detect.getMsOfficeVersion();
393
393
d['<%=REQUIREMENT_KEY_SET[:mshtml_build]%>'] = ScriptEngineBuildVersion().toString();
394
394
<%
You can’t perform that action at this time.
0 commit comments