@@ -63,14 +63,14 @@ def exploit_with_ssh_keys(self, port) -> paramiko.SSHClient:
63
63
logger .debug (
64
64
"Successfully logged in %s using %s users private key" , self .host , ssh_string
65
65
)
66
- self .report_login_attempt (True , user , ssh_key = ssh_string )
66
+ self .report_login_attempt (True , False , user , ssh_key = ssh_string )
67
67
return ssh
68
68
except Exception :
69
69
ssh .close ()
70
70
logger .debug (
71
71
"Error logging into victim %r with %s" " private key" , self .host , ssh_string
72
72
)
73
- self .report_login_attempt (False , user , ssh_key = ssh_string )
73
+ self .report_login_attempt (False , False , user , ssh_key = ssh_string )
74
74
continue
75
75
raise FailedExploitationError
76
76
@@ -89,7 +89,7 @@ def exploit_with_login_creds(self, port) -> paramiko.SSHClient:
89
89
90
90
logger .debug ("Successfully logged in %r using SSH. User: %s" , self .host , user )
91
91
self .add_vuln_port (port )
92
- self .report_login_attempt (True , user , current_password )
92
+ self .report_login_attempt (False , True , user , current_password )
93
93
return ssh
94
94
95
95
except Exception as exc :
@@ -99,7 +99,7 @@ def exploit_with_login_creds(self, port) -> paramiko.SSHClient:
99
99
user ,
100
100
exc ,
101
101
)
102
- self .report_login_attempt (False , user , current_password )
102
+ self .report_login_attempt (False , False , user , current_password )
103
103
ssh .close ()
104
104
continue
105
105
raise FailedExploitationError
0 commit comments