File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
modules/auxiliary/scanner/smb Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def initialize(info = {})
28
28
[ 'CVE' , '2017-0146' ] ,
29
29
[ 'CVE' , '2017-0147' ] ,
30
30
[ 'CVE' , '2017-0148' ] ,
31
+ [ 'MSB' , 'MS17-010' ] ,
31
32
[ 'URL' , 'https://technet.microsoft.com/en-us/library/security/ms17-010.aspx' ]
32
33
] ,
33
34
'License' => MSF_LICENSE
@@ -37,7 +38,6 @@ def initialize(info = {})
37
38
def run_host ( ip )
38
39
begin
39
40
status = do_smb_probe ( ip )
40
- print_status ( "Received #{ status } with FID = 0" )
41
41
42
42
# STATUS_ACCESS_DENIED (Windows 10) and STATUS_INVALID_HANDLE (others)
43
43
if status == "STATUS_ACCESS_DENIED" or status == "STATUS_INVALID_HANDLE"
@@ -58,7 +58,7 @@ def run_host(ip)
58
58
end
59
59
end
60
60
61
- def do_smb_probe ( ip , opts = { } )
61
+ def do_smb_probe ( ip )
62
62
connect
63
63
64
64
# logon as user \
@@ -83,7 +83,10 @@ def do_smb_probe(ip, opts={})
83
83
# convert error code to string
84
84
code = pkt [ 'SMB' ] . v [ 'ErrorClass' ]
85
85
smberr = Rex ::Proto ::SMB ::Exceptions ::ErrorCode . new
86
- smberr . get_error ( code )
86
+ status = smberr . get_error ( code )
87
+
88
+ print_status ( "Received #{ status } with FID = 0" )
89
+ status
87
90
end
88
91
89
92
def make_smb_trans_ms17_010 ( tree_id )
You can’t perform that action at this time.
0 commit comments