Skip to content

Commit b1453af

Browse files
committed
Land rapid7#4297, fixes rapid7#4293, Use OperatingSystems::Match::WINDOWS
* instead of Msf::OperatingSystems::WINDOWS
2 parents f676b72 + a631ee6 commit b1453af

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

modules/exploits/windows/browser/adobe_flash_avm2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module has been tested successfully with Adobe Flash Player 11.7.700.202 on Wind
6868
:source => /script|headers/i,
6969
:clsid => "{D27CDB6E-AE6D-11cf-96B8-444553540000}",
7070
:method => "LoadMovie",
71-
:os_name => Msf::OperatingSystems::WINDOWS,
71+
:os_name => OperatingSystems::Match::WINDOWS,
7272
:ua_name => Msf::HttpClients::IE,
7373
:flash => lambda { |ver| ver =~ /^11\./ }
7474
},

modules/exploits/windows/browser/adobe_flash_filters_type_confusion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def initialize(info={})
5353
:source => /script|headers/i,
5454
:clsid => "{D27CDB6E-AE6D-11cf-96B8-444553540000}",
5555
:method => "LoadMovie",
56-
:os_name => Msf::OperatingSystems::WINDOWS,
56+
:os_name => OperatingSystems::Match::WINDOWS,
5757
:ua_name => Msf::HttpClients::IE,
5858
:flash => lambda { |ver| ver =~ /^11\.[7|8|9]/ && ver < '11.9.900.170' }
5959
},

modules/exploits/windows/browser/adobe_flash_pixel_bender_bof.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(info={})
5151
'BrowserRequirements' =>
5252
{
5353
:source => /script|headers/i,
54-
:os_name => Msf::OperatingSystems::WINDOWS,
54+
:os_name => OperatingSystems::Match::WINDOWS,
5555
:ua_name => lambda { |ua| ua == Msf::HttpClients::IE || ua == Msf::HttpClients::FF || ua == Msf::HttpClients::SAFARI},
5656
:flash => lambda { |ver| ver =~ /^11\./ || ver =~ /^12\./ || (ver =~ /^13\./ && ver <= '13.0.0.182') }
5757
},

modules/exploits/windows/browser/adobe_flash_regex_value.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def initialize(info={})
5757
:source => /script|headers/i,
5858
:clsid => "{D27CDB6E-AE6D-11cf-96B8-444553540000}",
5959
:method => "LoadMovie",
60-
:os_name => Msf::OperatingSystems::WINDOWS,
60+
:os_name => OperatingSystems::Match::WINDOWS,
6161
:ua_name => Msf::HttpClients::IE,
6262
:flash => lambda { |ver| ver =~ /^11\.5/ && ver < '11.5.502.149' }
6363
},

modules/exploits/windows/browser/advantech_webaccess_dvs_getcolor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def initialize(info = {})
4040
'BrowserRequirements' =>
4141
{
4242
:source => /script|headers/i,
43-
:os_name => Msf::OperatingSystems::WINDOWS,
43+
:os_name => OperatingSystems::Match::WINDOWS,
4444
:ua_name => /MSIE/i,
4545
:ua_ver => lambda { |ver| Gem::Version.new(ver) < Gem::Version.new('10') },
4646
:clsid => "{5CE92A27-9F6A-11D2-9D3D-000001155641}",

0 commit comments

Comments
 (0)