Skip to content

Commit 5f97355

Browse files
author
Sebastiano Di Paola
committed
Conflicts: modules/auxiliary/scanner/ssl/openssl_heartbleed.rb
2 parents cc836c0 + eb0e35b commit 5f97355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/ssl/openssl_heartbleed.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def initialize
123123
OptEnum.new('STARTTLS', [true, 'Protocol to use with STARTTLS, None to avoid STARTTLS ', 'None', [ 'None', 'SMTP', 'IMAP', 'JABBER', 'POP3', 'FTP' ]]),
124124
OptEnum.new('TLSVERSION', [true, 'TLS version to use', '1.0', ['1.0', '1.1', '1.2']]),
125125
OptBool.new('STOREDUMP', [true, "Store leaked memory in a file", false]),
126-
OptString.new('PATTERN_FILTER', [false, "Pattern to filter leaked memory before storing", ""])
126+
OptRegexp.new('PATTERN_FILTER', [false, "Pattern to filter leaked memory before storing", nil])
127127
], self.class)
128128

129129
register_advanced_options(
@@ -296,7 +296,7 @@ def run_host(ip)
296296
})
297297
if datastore['STOREDUMP']
298298
pattern = datastore['PATTERN_FILTER']
299-
if !pattern.empty?
299+
if !pattern.nil?
300300
match_data = heartbeat_data.scan(/#{pattern}/).join('')
301301
else
302302
match_data = heartbeat_data

0 commit comments

Comments
 (0)