Skip to content

Commit e3daf6d

Browse files
committed
Singular 'TLS_CALLBACK' option
1 parent 6c832e2 commit e3daf6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/auxiliary/scanner/ssl/openssl_heartbleed.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def initialize
133133
register_options(
134134
[
135135
Opt::RPORT(443),
136-
OptEnum.new('TLS_CALLBACKS', [true, 'Protocol to use, "None" to use raw TLS sockets', 'None', [ 'None', 'SMTP', 'IMAP', 'JABBER', 'POP3', 'FTP' ]]),
136+
OptEnum.new('TLS_CALLBACK', [true, 'Protocol to use, "None" to use raw TLS sockets', 'None', [ 'None', 'SMTP', 'IMAP', 'JABBER', 'POP3', 'FTP' ]]),
137137
OptEnum.new('TLS_VERSION', [true, 'TLS/SSL version to use', '1.0', ['SSLv3','1.0', '1.1', '1.2']]),
138138
OptInt.new('MAX_KEYTRIES', [true, 'Max tries to dump key', 10]),
139139
OptInt.new('STATUS_EVERY', [true, 'How many retries until status', 5]),
@@ -347,7 +347,7 @@ def loot_and_report(heartbeat_data)
347347
end
348348

349349
def getkeys()
350-
unless datastore['TLS_CALLBACKS'] == 'None'
350+
unless datastore['TLS_CALLBACK'] == 'None'
351351
print_error('TLS callbacks currently unsupported for keydumping action') #TODO
352352
return
353353
end
@@ -473,9 +473,9 @@ def get_factors(data, n)
473473
def establish_connect
474474
connect
475475

476-
unless datastore['TLS_CALLBACKS'] == 'None'
477-
vprint_status("#{peer} - Trying to start SSL via #{datastore['TLS_CALLBACKS']}")
478-
res = self.send(TLS_CALLBACKS[datastore['TLS_CALLBACKS']])
476+
unless datastore['TLS_CALLBACK'] == 'None'
477+
vprint_status("#{peer} - Trying to start SSL via #{datastore['TLS_CALLBACK']}")
478+
res = self.send(TLS_CALLBACKS[datastore['TLS_CALLBACK']])
479479
if res.nil?
480480
vprint_error("#{peer} - STARTTLS failed...")
481481
return

0 commit comments

Comments
 (0)