@@ -42,19 +42,20 @@ module Exploit::Remote::BrowserExploitServer
42
42
43
43
# Requirements a browser module can define in either BrowserRequirements or in targets
44
44
REQUIREMENT_KEY_SET = {
45
- :source => 'source' , # Either 'script' or 'headers'
46
- :ua_name => 'ua_name' , # Example: MSIE
47
- :ua_ver => 'ua_ver' , # Example: 8.0, 9.0
48
- :os_name => 'os_name' , # Example: Microsoft Windows
49
- :os_flavor => 'os_flavor' , # Example: XP, 7
50
- :language => 'language' , # Example: en-us
51
- :arch => 'arch' , # Example: x86
52
- :proxy => 'proxy' , # 'true' or 'false'
53
- :silverlight => 'silverlight' , # 'true' or 'false'
54
- :office => 'office' , # Example: "2007", "2010"
55
- :java => 'java' , # Example: 1.6, 1.6.0.0
56
- :clsid => 'clsid' , # ActiveX clsid. Also requires the :method key
57
- :method => 'method' # ActiveX method. Also requires the :clsid key
45
+ :source => 'source' , # Either 'script' or 'headers'
46
+ :ua_name => 'ua_name' , # Example: MSIE
47
+ :ua_ver => 'ua_ver' , # Example: 8.0, 9.0
48
+ :os_name => 'os_name' , # Example: Microsoft Windows
49
+ :os_flavor => 'os_flavor' , # Example: XP, 7
50
+ :language => 'language' , # Example: en-us
51
+ :arch => 'arch' , # Example: x86
52
+ :proxy => 'proxy' , # 'true' or 'false'
53
+ :silverlight => 'silverlight' , # 'true' or 'false'
54
+ :office => 'office' , # Example: "2007", "2010"
55
+ :java => 'java' , # Example: 1.6, 1.6.0.0
56
+ :clsid => 'clsid' , # ActiveX clsid. Also requires the :method key
57
+ :method => 'method' , # ActiveX method. Also requires the :clsid key
58
+ :mshtml_build => 'mshtml_build' # mshtml build. Example: "65535"
58
59
}
59
60
60
61
def initialize ( info = { } )
@@ -379,6 +380,7 @@ def get_detection_html(user_agent)
379
380
380
381
<% if os == OperatingSystems::WINDOWS and client == HttpClients::IE %>
381
382
d['<%=REQUIREMENT_KEY_SET[:office]%>'] = window.ie_addons_detect.getMsOfficeVersion();
383
+ d['<%=REQUIREMENT_KEY_SET[:mshtml_build]%>'] = ScriptEngineBuildVersion().toString();
382
384
<%
383
385
clsid = @requirements[:clsid]
384
386
method = @requirements[:method]
0 commit comments