Skip to content

Commit 5cb016c

Browse files
committed
Use Match constant in BES as well
1 parent 7e05ff3 commit 5cb016c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/remote/browser_exploit_server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def get_detection_html(user_agent)
362362
<%= js_os_detect %>
363363
<%= js_ajax_post %>
364364
<%= 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 %>
366366
367367
function objToQuery(obj) {
368368
var q = [];
@@ -388,7 +388,7 @@ def get_detection_html(user_agent)
388388
"<%=REQUIREMENT_KEY_SET[:flash]%>" : window.misc_addons_detect.getFlashVersion()
389389
};
390390
391-
<% if os.match(/^Windows/) and client == HttpClients::IE %>
391+
<% if os.match(OperatingSystems::Match::WINDOWS) and client == HttpClients::IE %>
392392
d['<%=REQUIREMENT_KEY_SET[:office]%>'] = window.ie_addons_detect.getMsOfficeVersion();
393393
d['<%=REQUIREMENT_KEY_SET[:mshtml_build]%>'] = ScriptEngineBuildVersion().toString();
394394
<%

0 commit comments

Comments
 (0)