Skip to content

Commit a88ee09

Browse files
committed
Fix os detection
See rapid7#3373
1 parent a42c7a8 commit a88ee09

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

modules/exploits/windows/browser/ms13_059_cflatmarkuppointer.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ def initialize(info={})
5858
'BrowserRequirements' =>
5959
{
6060
:source => /script/i,
61-
:os_name => OperatingSystems::WINDOWS,
61+
:os_name => 'Windows 7',
6262
:ua_name => HttpClients::IE,
6363
:ua_ver => "9.0",
64-
:os_flavor => "7",
6564
:java => /1\.6|6\.0/,
6665
:mshtml_build => lambda { |ver| ver.to_i.between?(16446, 16490) } # May 17 mshtml to MS13-Jun
6766
},

modules/exploits/windows/browser/ms14_012_cmarkup_uaf.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def initialize(info={})
4444
'BrowserRequirements' =>
4545
{
4646
:source => /script|headers/i,
47-
:os_name => Msf::OperatingSystems::WINDOWS,
48-
:os_flavor => Msf::OperatingSystems::WindowsVersions::SEVEN,
47+
:os_name => 'Windows 7',
4948
:ua_name => Msf::HttpClients::IE,
5049
:ua_ver => '10.0',
5150
:mshtml_build => lambda { |ver| ver.to_i < 16843 },

0 commit comments

Comments
 (0)