Skip to content

Commit 68cb766

Browse files
committed
Land rapid7#5007, Ruby 1.9+ syntax
2 parents 632879c + 8f03cad commit 68cb766

10 files changed

+17
-20
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,9 @@ def has_proxy?(request)
376376
# @param user_agent [String] The user-agent of the browser
377377
# @return [String] Returns the HTML for detection
378378
def get_detection_html(user_agent)
379-
print_debug(user_agent)
380379
ua_info = fingerprint_user_agent(user_agent)
381380
os = ua_info[:os_name]
382381
client = ua_info[:ua_name]
383-
print_debug(os.inspect)
384-
print_debug(client.inspect)
385382

386383
code = ERB.new(%Q|
387384
<%= js_base64 %>

modules/exploits/windows/browser/adobe_flash_avm2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ module has been tested successfully with Adobe Flash Player 11.7.700.202 on Wind
6868
:source => /script|headers/i,
6969
:activex => [
7070
{
71-
:clsid => '{D27CDB6E-AE6D-11cf-96B8-444553540000}',
72-
:method => 'LoadMovie'
71+
clsid: '{D27CDB6E-AE6D-11cf-96B8-444553540000}',
72+
method: 'LoadMovie'
7373
}
7474
],
7575
:os_name => OperatingSystems::Match::WINDOWS,

modules/exploits/windows/browser/adobe_flash_filters_type_confusion.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def initialize(info={})
5353
:source => /script|headers/i,
5454
:activex => [
5555
{
56-
:clsid => '{D27CDB6E-AE6D-11cf-96B8-444553540000}',
57-
:method => 'LoadMovie'
56+
clsid: '{D27CDB6E-AE6D-11cf-96B8-444553540000}',
57+
method: 'LoadMovie'
5858
}
5959
],
6060
:os_name => OperatingSystems::Match::WINDOWS,

modules/exploits/windows/browser/adobe_flash_pcre.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def initialize(info={})
4848
:source => /script|headers/i,
4949
:activex => [
5050
{
51-
:clsid => "{#{CLASSID}}",
52-
:method => "LoadMovie"
51+
clsid: "{#{CLASSID}}",
52+
method: "LoadMovie"
5353
}
5454
],
5555
:os_name => OperatingSystems::Match::WINDOWS_7,

modules/exploits/windows/browser/adobe_flash_regex_value.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def initialize(info={})
5757
:source => /script|headers/i,
5858
:activex => [
5959
{
60-
:clsid => "{D27CDB6E-AE6D-11cf-96B8-444553540000}",
61-
:method => "LoadMovie"
60+
clsid: "{D27CDB6E-AE6D-11cf-96B8-444553540000}",
61+
method: "LoadMovie"
6262
}
6363
],
6464
:os_name => OperatingSystems::Match::WINDOWS,

modules/exploits/windows/browser/advantech_webaccess_dvs_getcolor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def initialize(info = {})
4545
:ua_ver => lambda { |ver| Gem::Version.new(ver) < Gem::Version.new('10') },
4646
:activex => [
4747
{
48-
:clsid => "{5CE92A27-9F6A-11D2-9D3D-000001155641}",
49-
:method => "GetColor"
48+
clsid: "{5CE92A27-9F6A-11D2-9D3D-000001155641}",
49+
method: "GetColor"
5050
}
5151
]
5252
},

modules/exploits/windows/browser/aladdin_choosefilepath_bof.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def initialize(info={})
4747
:source => /script|headers/i,
4848
:activex => [
4949
{
50-
:clsid => "{09F68A41-2FBE-11D3-8C9D-0008C7D901B6}",
51-
:method => "ChooseFilePath"
50+
clsid: "{09F68A41-2FBE-11D3-8C9D-0008C7D901B6}",
51+
method: "ChooseFilePath"
5252
}
5353
],
5454
:os_name => OperatingSystems::Match::WINDOWS,

modules/exploits/windows/browser/ms13_090_cardspacesigninhelper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def initialize(info={})
7575
:source => /script|headers/i,
7676
:activex => [
7777
{
78-
:clsid => "{19916E01-B44E-4E31-94A4-4696DF46157B}",
79-
:method => "requiredClaims"
78+
clsid: '{19916E01-B44E-4E31-94A4-4696DF46157B}',
79+
method: 'requiredClaims'
8080
}
8181
],
8282
:os_name => OperatingSystems::Match::WINDOWS_XP

modules/exploits/windows/browser/x360_video_player_set_text_bof.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def initialize(info={})
4646
:source => /script|headers/i,
4747
:activex => [
4848
{
49-
:clsid => "{4B3476C6-185A-4D19-BB09-718B565FA67B}",
50-
:method => "SetText"
49+
clsid: '{4B3476C6-185A-4D19-BB09-718B565FA67B}',
50+
method: 'SetText'
5151
}
5252
],
5353
:os_name => OperatingSystems::Match::WINDOWS,

spec/lib/msf/core/exploit/remote/browser_exploit_server_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
:ua_ver =>'8.0',
4242
:arch =>'x86',
4343
:office =>'null',
44-
:activex => [ {:clsid=>'{D27CDB6E-AE6D-11cf-96B8-444553540000}', :method => 'LoadMovie'} ],
44+
:activex => [ {clsid: '{D27CDB6E-AE6D-11cf-96B8-444553540000}', method: 'LoadMovie'} ],
4545
:proxy => false,
4646
:language => 'en-us',
4747
:tried => true

0 commit comments

Comments
 (0)