@@ -131,19 +131,19 @@ def run_host(ip)
131
131
)
132
132
case result . status
133
133
when Metasploit ::Model ::Login ::Status ::SUCCESSFUL
134
- print_brute :level => :good , :ip => ip , :msg => "Success: '#{ result . credential } ' '#{ result . proof . to_s . gsub ( /[\r \n \e \b \a ]/ , ' ' ) } '"
134
+ print_brute :level => :good , :ip => ip , :msg => "#{ ip } : #{ rport } - Success: '#{ result . credential } ' '#{ result . proof . to_s . gsub ( /[\r \n \e \b \a ]/ , ' ' ) } '"
135
135
credential_core = create_credential ( credential_data )
136
136
credential_data [ :core ] = credential_core
137
137
create_credential_login ( credential_data )
138
138
session_setup ( result , scanner . ssh_socket )
139
139
:next_user
140
140
when Metasploit ::Model ::Login ::Status ::UNABLE_TO_CONNECT
141
- vprint_brute :level => :verror , :ip => ip , :msg => "Could not connect: #{ result . proof } "
141
+ vprint_brute :level => :verror , :ip => ip , :msg => "#{ ip } : #{ rport } - Could not connect: #{ result . proof } "
142
142
scanner . ssh_socket . close if scanner . ssh_socket && !scanner . ssh_socket . closed?
143
143
invalidate_login ( credential_data )
144
144
:abort
145
145
when Metasploit ::Model ::Login ::Status ::INCORRECT
146
- vprint_brute :level => :verror , :ip => ip , :msg => "Failed: '#{ result . credential } '"
146
+ vprint_brute :level => :verror , :ip => ip , :msg => "#{ ip } : #{ rport } - Failed: '#{ result . credential } '"
147
147
invalidate_login ( credential_data )
148
148
scanner . ssh_socket . close if scanner . ssh_socket && !scanner . ssh_socket . closed?
149
149
else
0 commit comments