properly strip extra colons
parent
6651af2d9b
commit
5b0a356045
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue