Skip to content

Commit 845108a

Browse files
author
Tod Beardsley
committed
Looks like an autocorrect ran wild on TLS_CALLBACK
Whoops.
1 parent 2aa2cb1 commit 845108a

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
@@ -136,7 +136,7 @@ def initialize
136136
register_options(
137137
[
138138
Opt::RPORT(443),
139-
OptEnum.new('TLS_CALLBACKS', [true, 'Protocol to use, "None" to use raw TLS sockets', 'None', [ 'None', 'SMTP', 'IMAP', 'JABBER', 'POP3', 'FTP' ]]),
139+
OptEnum.new('TLS_CALLBACK', [true, 'Protocol to use, "None" to use raw TLS sockets', 'None', [ 'None', 'SMTP', 'IMAP', 'JABBER', 'POP3', 'FTP' ]]),
140140
OptEnum.new('TLS_VERSION', [true, 'TLS/SSL version to use', '1.0', ['SSLv3','1.0', '1.1', '1.2']]),
141141
OptInt.new('MAX_KEYTRIES', [true, 'Max tries to dump key', 10]),
142142
OptInt.new('STATUS_EVERY', [true, 'How many retries until status', 5]),
@@ -368,7 +368,7 @@ def loot_and_report(heartbeat_data)
368368
end
369369

370370
def getkeys()
371-
unless datastore['TLS_CALLBACKS'] == 'None'
371+
unless datastore['TLS_CALLBACK'] == 'None'
372372
print_error('TLS callbacks currently unsupported for keydumping action') #TODO
373373
return
374374
end
@@ -494,9 +494,9 @@ def get_factors(data, n)
494494
def establish_connect
495495
connect
496496

497-
unless datastore['TLS_CALLBACKS'] == 'None'
498-
vprint_status("#{peer} - Trying to start SSL via #{datastore['TLS_CALLBACKS']}")
499-
res = self.send(TLS_CALLBACKS[datastore['TLS_CALLBACKS']])
497+
unless datastore['TLS_CALLBACK'] == 'None'
498+
vprint_status("#{peer} - Trying to start SSL via #{datastore['TLS_CALLBACK']}")
499+
res = self.send(TLS_CALLBACKS[datastore['TLS_CALLBACK']])
500500
if res.nil?
501501
vprint_error("#{peer} - STARTTLS failed...")
502502
return

0 commit comments

Comments
 (0)