Skip to content

Commit cd56470

Browse files
author
Brent Cook
committed
Land rapid7#6493, move SSL to the default options, other fixes
2 parents 110a484 + 484d576 commit cd56470

30 files changed

+68
-89
lines changed

lib/msf/core/auxiliary/crawler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def initialize(info = {})
2525
OptInt.new('MAX_THREADS', [ true, 'The maximum number of concurrent requests', 4]),
2626
OptString.new('USERNAME', [false, 'The HTTP username to specify for authentication']),
2727
OptString.new('PASSWORD', [false, 'The HTTP password to specify for authentication']),
28-
OptString.new('DOMAIN', [ true, 'The domain to use for windows authentication', 'WORKSTATION'])
28+
OptString.new('DOMAIN', [ true, 'The domain to use for windows authentication', 'WORKSTATION']),
29+
OptBool.new('SSL', [ false, 'Negotiate SSL/TLS for outgoing connections', false])
2930

3031
], self.class
3132
)
@@ -43,7 +44,6 @@ def initialize(info = {})
4344
OptString.new('BasicAuthPass', [false, 'The HTTP password to specify for basic authentication']),
4445
OptString.new('HTTPAdditionalHeaders', [false, "A list of additional headers to send (separated by \\x01)"]),
4546
OptString.new('HTTPCookie', [false, "A HTTP cookie header to send with each request"]),
46-
OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', false]),
4747
OptEnum.new('SSLVersion', [ false, 'Specify the version of SSL that should be used', 'Auto', ['Auto', 'SSL2', 'SSL23', 'SSL3', 'TLS1']]),
4848
], self.class
4949
)

lib/msf/core/exploit/http/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def initialize(info = {})
3737
Opt::RHOST,
3838
Opt::RPORT(80),
3939
OptString.new('VHOST', [ false, "HTTP server virtual host" ]),
40+
OptBool.new('SSL', [ false, 'Negotiate SSL/TLS for outgoing connections', false]),
4041
Opt::Proxies
4142
], self.class
4243
)
@@ -49,7 +50,6 @@ def initialize(info = {})
4950
OptString.new('USERNAME', [false, 'The HTTP username to specify for authentication', '']),
5051
OptString.new('PASSWORD', [false, 'The HTTP password to specify for authentication', '']),
5152
OptBool.new('DigestAuthIIS', [false, 'Conform to IIS, should work for most servers. Only set to false for non-IIS servers', true]),
52-
OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', false]),
5353
OptEnum.new('SSLVersion', [ false, 'Specify the version of SSL that should be used', 'Auto', ['Auto', 'SSL2', 'SSL3', 'TLS1']]),
5454
OptBool.new('FingerprintCheck', [ false, 'Conduct a pre-exploit fingerprint verification', true]),
5555
OptString.new('DOMAIN', [ true, 'The domain to use for windows authentification', 'WORKSTATION']),

lib/msf/core/exploit/tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def initialize(info = {})
6363

6464
register_advanced_options(
6565
[
66-
OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', false]),
66+
OptBool.new('SSL', [ false, 'Negotiate SSL/TLS for outgoing connections', false]),
6767
OptEnum.new('SSLVersion', [ false, 'Specify the version of SSL/TLS to be used (TLS and SSL23 are auto-negotiate)', 'TLS1', ['SSL2', 'SSL3', 'SSL23', 'TLS', 'TLS1', 'TLS1.1', 'TLS1.2']]),
6868
OptEnum.new('SSLVerifyMode', [ false, 'SSL verification method', 'PEER', %W{CLIENT_ONCE FAIL_IF_NO_PEER_CERT NONE PEER}]),
6969
OptString.new('SSLCipher', [ false, 'String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"']),

modules/auxiliary/admin/vmware/poweroff_vm.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def initialize
2020
This module will log into the Web API of VMWare and try to power off
2121
a specified Virtual Machine.},
2222
'Author' => ['theLightCosine'],
23-
'License' => MSF_LICENSE
23+
'License' => MSF_LICENSE,
24+
'DefaultOptions' => { 'SSL' => true }
2425
)
2526

2627
register_options(
@@ -30,8 +31,6 @@ def initialize
3031
OptString.new('PASSWORD', [ true, "The password to Authenticate with.", 'password' ]),
3132
OptString.new('VM', [true, "The VM to try to Power Off"])
3233
], self.class)
33-
34-
register_advanced_options([OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', true]),])
3534
end
3635

3736
def run

modules/auxiliary/admin/vmware/poweron_vm.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def initialize
2121
a specified Virtual Machine.
2222
},
2323
'Author' => ['theLightCosine'],
24-
'License' => MSF_LICENSE
24+
'License' => MSF_LICENSE,
25+
'DefaultOptions' => { 'SSL' => true }
2526
)
2627

2728
register_options(
@@ -31,8 +32,6 @@ def initialize
3132
OptString.new('PASSWORD', [ true, "The password to Authenticate with.", 'password' ]),
3233
OptString.new('VM', [true, "The VM to try to Power On"])
3334
], self.class)
34-
35-
register_advanced_options([OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', true]),])
3635
end
3736

3837
def run

modules/auxiliary/admin/vmware/tag_vm.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def initialize
2222
logging a user event with user supplied text
2323
},
2424
'Author' => ['theLightCosine'],
25-
'License' => MSF_LICENSE
25+
'License' => MSF_LICENSE,
26+
'DefaultOptions' => { 'SSL' => true }
2627
)
2728

2829
register_options(
@@ -33,8 +34,6 @@ def initialize
3334
OptString.new('VM', [true, "The VM to try to Power On"]),
3435
OptString.new('MSG', [true, "The message to put in the log", 'Pwned by Metasploit'])
3536
], self.class)
36-
37-
register_advanced_options([OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', true]),])
3837
end
3938

4039
def run

modules/auxiliary/admin/vmware/terminate_esx_sessions.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def initialize
2020
This module will log into the Web API of VMWare and try to terminate
2121
user login sessions as specified by the session keys.},
2222
'Author' => ['theLightCosine'],
23-
'License' => MSF_LICENSE
23+
'License' => MSF_LICENSE,
24+
'DefaultOptions' => { 'SSL' => true }
2425
)
2526

2627
register_options(
@@ -30,8 +31,6 @@ def initialize
3031
OptString.new('PASSWORD', [ true, "The password to Authenticate with.", 'password' ]),
3132
OptString.new('KEYS', [true, "The session key to terminate"])
3233
], self.class)
33-
34-
register_advanced_options([OptBool.new('SSL', [ false, 'Negotiate SSL for outgoing connections', true]),])
3534
end
3635

3736
def run

modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ def initialize(info = {})
3232
'License' => MSF_LICENSE,
3333
'DefaultOptions' =>
3434
{
35-
'SSLVersion' => 'TLS1'
35+
'SSLVersion' => 'TLS1',
36+
'SSL' => true
3637
}
3738
))
3839

3940
register_options(
4041
[
4142
OptInt.new('RPORT', [true, 'The BigIP service port to listen on', 443]),
42-
OptBool.new('SSL', [true, "Negotiate SSL for outgoing connections", true]),
4343
OptString.new('TARGETURI', [true, 'The URI path to test', '/']),
4444
OptInt.new('REQUESTS', [true, 'The number of requests to send', 10])
4545
], self.class)

modules/auxiliary/gather/xerox_workcentre_5xxx_ldap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ def initialize(info={})
2222
'Deral "Percentx" Heiland',
2323
'Pete "Bokojan" Arzamendi'
2424
],
25-
'License' => MSF_LICENSE
25+
'License' => MSF_LICENSE,
26+
'DefaultOptions' => { 'SSL' => false }
2627
))
2728

2829
register_options(
2930
[
30-
OptBool.new('SSL', [true, 'Negotiate SSL for outgoing connections', false]),
3131
OptString.new('PASSWORD', [true, 'Password to access administrative interface. Defaults to 1111', '1111']),
3232
OptPort.new('RPORT', [true, 'The target port on the remote printer. Defaults to 80', 80]),
3333
OptInt.new('TIMEOUT', [true, 'Timeout for printer connection probe.', 20]),

modules/auxiliary/scanner/http/chef_webui_login.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ def initialize
2626
[
2727
'hdm'
2828
],
29-
'License' => MSF_LICENSE
29+
'License' => MSF_LICENSE,
30+
'DefaultOptions' =>
31+
{
32+
'SSL' => true,
33+
'SSLVersion' => 'TLS1'
34+
}
3035
)
3136

3237
register_options(
3338
[
3439
Opt::RPORT(443),
3540
OptString.new('TARGETURI', [ true, 'The path to the Chef Web UI application', '/']),
36-
OptBool.new('SSL', [true, 'Negotiate SSL for outgoing connections', true]),
37-
OptEnum.new('SSLVersion', [false, 'Specify the version of SSL that should be used', 'TLS1', ['SSL2', 'SSL3', 'TLS1']])
3841
], self.class)
3942
end
4043

0 commit comments

Comments
 (0)