Quick fix for ssh_login_pubkey

Fixes #3772, closes #3774
bug/bundler_fix
James Lee 2014-09-10 09:54:35 -05:00
parent 99c9d5a578
commit 257f0fc93e
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 3 additions and 5 deletions

View File

@ -198,7 +198,7 @@ class Metasploit3 < Msf::Auxiliary
keys = prepend_db_keys(keys)
print_brute :level => :vstatus, :ip => ip, :msg => "Testing #{keys.key_data.count} keys"
print_brute :level => :vstatus, :ip => ip, :msg => "Testing #{keys.key_data.count} keys from #{datastore['KEY_PATH']}"
scanner = Metasploit::Framework::LoginScanner::SSH.new(
host: ip,
port: rport,
@ -240,12 +240,10 @@ class Metasploit3 < Msf::Auxiliary
class KeyCollection < Metasploit::Framework::CredentialCollection
attr_accessor :key_data
attr_accessor :key_path
def initialize(opts={})
@username = opts[:username]
@user_file = opts[:user_file]
@key_path = opts.fetch(:key_path)
super
valid!
end