properly strip extra colons

bug/bundler_fix
David Maloney 2014-06-25 10:04:48 -05:00
parent 6651af2d9b
commit 5b0a356045
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
require 'msf/core' require 'msf/core'
require 'msf/core/auxiliary/jtr'
class Metasploit3 < Msf::Auxiliary class Metasploit3 < Msf::Auxiliary
@ -69,7 +70,8 @@ class Metasploit3 < Msf::Auxiliary
next unless fields.count >=7 next unless fields.count >=7
username = fields.shift username = fields.shift
core_id = fields.pop core_id = fields.pop
password = fields.join(':') # Anything left must be the password. This accounts for passwords with : in them 4.times { fields.pop }
password = fields.join('') # Anything left must be the password. This accounts for passwords with : in them
print_good password_line print_good password_line
create_cracked_credential( username: username, password: password, core_id: core_id) create_cracked_credential( username: username, password: password, core_id: core_id)
end end