Skip to content

Commit 9cbb86a

Browse files
author
Sebastiano Di Paola
committed
fixed conflict while merging from heartbleed branch
2 parents 5f97355 + 83fe1ce commit 9cbb86a

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
@@ -101,7 +101,7 @@ def initialize
101101
'Christian Mehlmauer', # Msf module
102102
'wvu', # Msf module
103103
'juan vazquez', # Msf module
104-
'Sebastiano Di Paola' #Msf module
104+
'Sebastiano Di Paola' # Msf module
105105
],
106106
'References' =>
107107
[
@@ -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-
OptRegexp.new('PATTERN_FILTER', [false, "Pattern to filter leaked memory before storing", nil])
126+
OptRegexp.new('DUMPFILTER', [false, "Pattern to filter leaked memory before storing", nil])
127127
], self.class)
128128

129129
register_advanced_options(
@@ -295,9 +295,9 @@ def run_host(ip)
295295
:info => "Module #{self.fullname} successfully leaked info"
296296
})
297297
if datastore['STOREDUMP']
298-
pattern = datastore['PATTERN_FILTER']
299-
if !pattern.nil?
300-
match_data = heartbeat_data.scan(/#{pattern}/).join('')
298+
pattern = datastore['DUMPFILTER']
299+
if pattern
300+
match_data = heartbeat_data.scan(pattern).join
301301
else
302302
match_data = heartbeat_data
303303
end

0 commit comments

Comments
 (0)