Skip to content

Commit cf913e5

Browse files
author
Brent Cook
committed
Land rapid7#4832 @wvu-r7 remove and merge duplicate hash key initializers
2 parents 1efb433 + f3cad22 commit cf913e5

14 files changed

+12
-47
lines changed

lib/rex/proto/http/server.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class Server
8181
"htm" => "text/htm",
8282
"jpg" => "image/jpeg",
8383
"jpeg" => "image/jpeg",
84-
"jpeg" => "image/jpeg",
8584
"gif" => "image/gif",
8685
"png" => "image/png",
8786
"bmp" => "image/bmp",

modules/auxiliary/scanner/http/http_login.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def initialize
2222
super(
2323
'Name' => 'HTTP Login Utility',
2424
'Description' => 'This module attempts to authenticate to an HTTP service.',
25-
'References' =>
26-
[
27-
28-
],
2925
'Author' => [ 'hdm' ],
3026
'References' =>
3127
[

modules/exploits/windows/backupexec/name_service.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ module has been tested against Veritas 9.1 SP0, 9.1 SP1, and
4141
{
4242
'Space' => 1024,
4343
'MinNops' => 512,
44-
'MinNops' => 512,
4544
'StackAdjustment' => -3500,
4645
},
4746
'Platform' => %w{ win },

modules/exploits/windows/browser/cisco_playerpt_setsource.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def initialize(info = {})
4848
'DefaultOptions' =>
4949
{
5050
'EXITFUNC' => 'process',
51-
51+
'InitialAutoRunScript' => 'migrate -f'
5252
},
5353
'Payload' =>
5454
{
@@ -57,10 +57,6 @@ def initialize(info = {})
5757
'BadChars' => "\x00\x0d\x0a\x5c",
5858
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
5959
},
60-
'DefaultOptions' =>
61-
{
62-
'InitialAutoRunScript' => 'migrate -f'
63-
},
6460
'Platform' => 'win',
6561
'Targets' =>
6662
[

modules/exploits/windows/browser/cisco_playerpt_setsource_surl.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,13 @@ def initialize(info = {})
5252
'DefaultOptions' =>
5353
{
5454
'EXITFUNC' => 'process',
55-
55+
'InitialAutoRunScript' => 'migrate -f'
5656
},
5757
'Payload' =>
5858
{
5959
'Space' => 1024,
6060
'DisableNops' => true,
6161
},
62-
'DefaultOptions' =>
63-
{
64-
'InitialAutoRunScript' => 'migrate -f'
65-
},
6662
'Platform' => 'win',
6763
'Targets' =>
6864
[

modules/exploits/windows/browser/ms13_090_cardspacesigninhelper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def exploit_template(cli, target_info)
109109
"CardSpaceSigninHelper" => rand_text_alpha(5 + rand(5)),
110110
"get_code" => rand_text_alpha(5 + rand(5)),
111111
"code" => rand_text_alpha(5 + rand(5)),
112-
"massage_array" => rand_text_alpha(5 + rand(5)),
113112
"required_claims" => rand_text_alpha(5 + rand(5)),
114113
"massage_array" => rand_text_alpha(5 + rand(5)),
115114
"massage_array_length" => rand_text_alpha(5 + rand(5)),

modules/exploits/windows/browser/ntr_activex_check_bof.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def initialize(info = {})
5151
'DefaultOptions' =>
5252
{
5353
'EXITFUNC' => 'process',
54+
'InitialAutoRunScript' => 'migrate -f'
5455
},
5556
'Payload' =>
5657
{
@@ -59,10 +60,6 @@ def initialize(info = {})
5960
'BadChars' => "",
6061
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
6162
},
62-
'DefaultOptions' =>
63-
{
64-
'InitialAutoRunScript' => 'migrate -f'
65-
},
6663
'Platform' => 'win',
6764
'Targets' =>
6865
[

modules/exploits/windows/browser/ntr_activex_stopmodule.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,14 @@ def initialize(info = {})
4848
'DefaultOptions' =>
4949
{
5050
'EXITFUNC' => 'process',
51+
'InitialAutoRunScript' => 'migrate -f'
5152
},
5253
'Payload' =>
5354
{
5455
'Space' => 1024,
5556
'DisableNops' => true,
5657
'BadChars' => ""
5758
},
58-
'DefaultOptions' =>
59-
{
60-
'InitialAutoRunScript' => 'migrate -f'
61-
},
6259
'Platform' => 'win',
6360
'Targets' =>
6461
[

modules/exploits/windows/browser/oracle_autovue_setmarkupmode.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ def initialize(info = {})
5656
'DefaultOptions' =>
5757
{
5858
'EXITFUNC' => 'process',
59-
59+
'InitialAutoRunScript' => 'migrate -f'
6060
},
6161
'Payload' =>
6262
{
6363
'Space' => 948,
6464
'DisableNops' => true,
6565
},
66-
'DefaultOptions' =>
67-
{
68-
'InitialAutoRunScript' => 'migrate -f'
69-
},
7066
'Platform' => 'win',
7167
'Targets' =>
7268
[

modules/exploits/windows/http/hp_pcm_snac_update_certificates.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,14 @@ def initialize(info = {})
4040
'Arch' => ARCH_JAVA,
4141
'DefaultOptions' =>
4242
{
43-
'SHELL' => 'cmd.exe'
43+
'SHELL' => 'cmd.exe',
44+
'SSL' => true
4445
},
4546
'Targets' =>
4647
[
4748
[ 'HP ProCurve Manager 4.0 SNAC Server', {} ]
4849
],
4950
'DefaultTarget' => 0,
50-
'DefaultOptions' =>
51-
{
52-
'SSL' => true,
53-
},
5451
'DisclosureDate' => 'Sep 09 2013'))
5552

5653
register_options(

0 commit comments

Comments
 (0)