Skip to content

Commit 302db36

Browse files
committed
Add last_attempted_at to creds object
1 parent 1b3f911 commit 302db36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/auxiliary/scanner/pcanywhere/pcanywhere_login.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize
2121
report successful logins.
2222
},
2323
'Author' => ['theLightCosine'],
24-
'References' =>
24+
'References' =>
2525
[
2626
[ 'CVE', '1999-0502'] # Weak password
2727
],
@@ -49,7 +49,7 @@ def run_host(ip)
4949
port: datastore['RPORT'],
5050
service_name: 'pcanywhere',
5151
user: user,
52-
password: pass,
52+
password: pass
5353
)
5454
return if datastore['STOP_ON_SUCCESS']
5555
print_status('Waiting to Re-Negotiate Connection (this may take a minute)...')
@@ -90,7 +90,8 @@ def report_cred(opts)
9090

9191
login_data = {
9292
core: create_credential(credential_data),
93-
status: Metasploit::Model::Login::Status::SUCCESSFUL,
93+
last_attempted_at: DateTime.now,
94+
status: Metasploit::Model::Login::Status::SUCCESSFUL
9495
}.merge(service_data)
9596

9697
create_credential_login(login_data)

0 commit comments

Comments
 (0)