Skip to content

Commit b10d6b8

Browse files
committed
Land rapid7#9001, SSLVersion consolidation for modules
2 parents 98ae054 + 7924667 commit b10d6b8

File tree

4 files changed

+38
-53
lines changed

4 files changed

+38
-53
lines changed

modules/auxiliary/gather/emc_cta_xxe.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def initialize(info = {})
3030
[
3131
Opt::RPORT(443),
3232
OptBool.new('SSL', [true, 'Use SSL', true]),
33-
OptString.new('SSLVersion', [true, 'SSL version', 'TLS1']),
3433
OptString.new('TARGETURI', [ true, "Base directory path", '/']),
3534
OptString.new('FILEPATH', [true, "The filepath to read on the server", "/etc/shadow"]),
36-
])
35+
]
36+
)
3737
end
3838

3939
def run

modules/auxiliary/scanner/nessus/nessus_ntp_login.rb

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,18 @@ class MetasploitModule < Msf::Auxiliary
1313
include Msf::Auxiliary::AuthBrute
1414

1515
def initialize
16-
super(
17-
'Name' => 'Nessus NTP Login Utility',
18-
'Description' => 'This module attempts to authenticate to a Nessus NTP service.',
19-
'Author' => [ 'Vlatko Kosturjak <kost[at]linux.hr>' ],
20-
'License' => MSF_LICENSE
21-
)
22-
register_options(
23-
[
24-
Opt::RPORT(1241),
25-
OptBool.new('BLANK_PASSWORDS', [false, "Try blank passwords for all users", false])
26-
])
27-
28-
register_advanced_options(
29-
[
30-
OptBool.new('SSL', [ true, "Negotiate SSL for outgoing connections", true]),
31-
OptString.new('SSLVersion', [ true, " Specify the version of SSL that should be used", "TLS1"])
32-
])
16+
super(
17+
'Name' => 'Nessus NTP Login Utility',
18+
'Description' => 'This module attempts to authenticate to a Nessus NTP service.',
19+
'Author' => [ 'Vlatko Kosturjak <kost[at]linux.hr>' ],
20+
'License' => MSF_LICENSE
21+
)
22+
register_options(
23+
[
24+
Opt::RPORT(1241),
25+
OptBool.new('BLANK_PASSWORDS', "Try blank passwords for all users")
26+
]
27+
)
3328
end
3429

3530
def run_host(ip)

modules/auxiliary/scanner/openvas/openvas_omp_login.rb

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,18 @@ class MetasploitModule < Msf::Auxiliary
1010
include Msf::Auxiliary::AuthBrute
1111

1212
def initialize
13-
super(
14-
'Name' => 'OpenVAS OMP Login Utility',
15-
'Description' => 'This module attempts to authenticate to an OpenVAS OMP service.',
16-
'Author' => [ 'Vlatko Kosturjak <kost[at]linux.hr>' ],
17-
'License' => MSF_LICENSE
18-
)
19-
register_options(
20-
[
21-
Opt::RPORT(9390),
22-
OptBool.new('BLANK_PASSWORDS', [false, "Try blank passwords for all users", false])
23-
])
24-
25-
register_advanced_options(
26-
[
27-
OptBool.new('SSL', [ true, "Negotiate SSL for outgoing connections", true]),
28-
OptString.new('SSLVersion', [ true, " Specify the version of SSL that should be used", "TLS1"])
29-
])
13+
super(
14+
'Name' => 'OpenVAS OMP Login Utility',
15+
'Description' => 'This module attempts to authenticate to an OpenVAS OMP service.',
16+
'Author' => [ 'Vlatko Kosturjak <kost[at]linux.hr>' ],
17+
'License' => MSF_LICENSE
18+
)
19+
register_options(
20+
[
21+
Opt::RPORT(9390),
22+
OptBool.new('BLANK_PASSWORDS', [false, "Try blank passwords for all users", false])
23+
]
24+
)
3025
end
3126

3227
def run_host(ip)

modules/auxiliary/scanner/openvas/openvas_otp_login.rb

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,18 @@ class MetasploitModule < Msf::Auxiliary
1010
include Msf::Auxiliary::AuthBrute
1111

1212
def initialize
13-
super(
14-
'Name' => 'OpenVAS OTP Login Utility',
15-
'Description' => 'This module attempts to authenticate to an OpenVAS OTP service.',
16-
'Author' => [ 'Vlatko Kosturjak <kost[at]linux.hr>' ],
17-
'License' => MSF_LICENSE
18-
)
19-
register_options(
20-
[
21-
Opt::RPORT(9391),
22-
OptBool.new('BLANK_PASSWORDS', [false, "Try blank passwords for all users", false])
23-
])
24-
25-
register_advanced_options(
26-
[
27-
OptBool.new('SSL', [ true, "Negotiate SSL for outgoing connections", true]),
28-
OptString.new('SSLVersion', [ true, " Specify the version of SSL that should be used", "TLS1"])
29-
])
13+
super(
14+
'Name' => 'OpenVAS OTP Login Utility',
15+
'Description' => 'This module attempts to authenticate to an OpenVAS OTP service.',
16+
'Author' => [ 'Vlatko Kosturjak <kost[at]linux.hr>' ],
17+
'License' => MSF_LICENSE
18+
)
19+
register_options(
20+
[
21+
Opt::RPORT(9391),
22+
OptBool.new('BLANK_PASSWORDS', [false, "Try blank passwords for all users", false])
23+
]
24+
)
3025
end
3126

3227
def run_host(ip)

0 commit comments

Comments
 (0)