File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
modules/auxiliary/scanner/smb Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,10 @@ def run_host(ip)
48
48
if status == "STATUS_INSUFF_SERVER_RESOURCES"
49
49
print_warning ( "Host is likely VULNERABLE to MS17-010!" )
50
50
report_vuln (
51
- :host => rhost ,
52
- :port => rport ,
53
- :proto => 'tcp' ,
54
- :sname => 'SMB' ,
55
- :info => "Vulnerable to MS17-010" ,
51
+ host : ip ,
52
+ name : self . name ,
53
+ refs : self . references ,
54
+ info : 'STATUS_INSUFF_SERVER_RESOURCES for FID 0 against IPC$'
56
55
)
57
56
elsif status == "STATUS_ACCESS_DENIED" or status == "STATUS_INVALID_HANDLE"
58
57
# STATUS_ACCESS_DENIED (Windows 10) and STATUS_INVALID_HANDLE (others)
@@ -67,7 +66,7 @@ def run_host(ip)
67
66
rescue ::Rex ::Proto ::SMB ::Exceptions ::LoginError
68
67
print_error ( "An SMB Login Error occurred while connecting to the IPC$ tree." )
69
68
rescue ::Exception => e
70
- print_error ( "#{ e . class } : #{ e . message } " )
69
+ vprint_error ( "#{ e . class } : #{ e . message } " )
71
70
ensure
72
71
disconnect
73
72
end
You can’t perform that action at this time.
0 commit comments