@@ -87,7 +87,7 @@ def eval_host(ip, share)
87
87
device_type = self . simple . client . queryfs_fs_device [ 'device_type' ]
88
88
89
89
unless device_type
90
- print_error ( "\\ \\ #{ ip } \\ #{ share } : Error querying filesystem device type" )
90
+ vprint_error ( "\\ \\ #{ ip } \\ #{ share } : Error querying filesystem device type" )
91
91
return false , false , nil , nil
92
92
end
93
93
@@ -106,7 +106,7 @@ def eval_host(ip, share)
106
106
# 0x0006002 = bad network name, 0x0030001 Directory not found
107
107
return false , false , nil , nil
108
108
else
109
- print_error ( "\\ \\ #{ ip } \\ #{ share } : Error querying filesystem device type" )
109
+ vprint_error ( "\\ \\ #{ ip } \\ #{ share } : Error querying filesystem device type" )
110
110
return false , false , nil , nil
111
111
end
112
112
end
@@ -218,7 +218,7 @@ def srvsvc_netshareenum(ip)
218
218
begin
219
219
dcerpc_bind ( handle )
220
220
rescue Rex ::Proto ::SMB ::Exceptions ::ErrorCode => e
221
- print_error ( "#{ ip } : #{ e . message } " )
221
+ vprint_error ( "#{ ip } : #{ e . message } " )
222
222
return [ ]
223
223
end
224
224
@@ -392,7 +392,7 @@ def run_host(ip)
392
392
::Rex ::Proto ::SMB ::Exceptions ::InvalidCommand ,
393
393
::Rex ::Proto ::SMB ::Exceptions ::InvalidWordCount ,
394
394
::Rex ::Proto ::SMB ::Exceptions ::NoReply => e
395
- print_error ( e . message )
395
+ vprint_error ( e . message )
396
396
next if not shares . empty? and rport == 139 # no results, try again
397
397
rescue Errno ::ENOPROTOOPT
398
398
print_status ( "Wait 5 seconds before retrying..." )
0 commit comments