File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
modules/auxiliary/scanner/winrm Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ def run_host(ip)
52
52
:name => 'winrm' ,
53
53
:info => desc
54
54
)
55
- print_good "Negotiate protocol supported" if methods . include? "Negotiate"
56
- print_good "Kerberos protocol supported" if methods . include? "Kerberos"
57
- print_good "Basic protocol supported" if methods . include? "Basic"
55
+ print_good "#{ ip } : #{ rport } : Negotiate protocol supported" if methods . include? "Negotiate"
56
+ print_good "#{ ip } : #{ rport } : Kerberos protocol supported" if methods . include? "Kerberos"
57
+ print_good "#{ ip } : #{ rport } : Basic protocol supported" if methods . include? "Basic"
58
58
else
59
59
print_error "#{ ip } :#{ rport } Does not appear to be a WinRM server"
60
60
end
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def run_host(ip)
49
49
each_user_pass do |user , pass |
50
50
resp , c = send_request_ntlm ( test_request )
51
51
if resp . nil?
52
- print_error "Got no reply from the server, connection may have timed out"
52
+ print_error "#{ ip } : #{ rport } : Got no reply from the server, connection may have timed out"
53
53
return
54
54
elsif resp . code == 200
55
55
cred_hash = {
@@ -62,9 +62,9 @@ def run_host(ip)
62
62
:active => true
63
63
}
64
64
report_auth_info ( cred_hash )
65
- print_good "Valid credential found: #{ user } :#{ pass } "
65
+ print_good "#{ ip } : #{ rport } : Valid credential found: #{ user } :#{ pass } "
66
66
elsif resp . code == 401
67
- print_error "Login failed: #{ user } :#{ pass } "
67
+ print_error "#{ ip } : #{ rport } : Login failed: #{ user } :#{ pass } "
68
68
else
69
69
print_error "Recieved unexpected Response Code: #{ resp . code } "
70
70
end
You can’t perform that action at this time.
0 commit comments