File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
modules/auxiliary/scanner/ssh Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def run_host(ip)
198
198
199
199
keys = prepend_db_keys ( keys )
200
200
201
- print_brute :level => :vstatus , :ip => ip , :msg => "Testing #{ keys . key_data . count } keys"
201
+ print_brute :level => :vstatus , :ip => ip , :msg => "Testing #{ keys . key_data . count } keys from #{ datastore [ 'KEY_PATH' ] } "
202
202
scanner = Metasploit ::Framework ::LoginScanner ::SSH . new (
203
203
host : ip ,
204
204
port : rport ,
@@ -240,12 +240,10 @@ def run_host(ip)
240
240
241
241
class KeyCollection < Metasploit ::Framework ::CredentialCollection
242
242
attr_accessor :key_data
243
+ attr_accessor :key_path
243
244
244
245
def initialize ( opts = { } )
245
- @username = opts [ :username ]
246
- @user_file = opts [ :user_file ]
247
- @key_path = opts . fetch ( :key_path )
248
-
246
+ super
249
247
valid!
250
248
end
251
249
You can’t perform that action at this time.
0 commit comments