modules/auxiliary/admin/smb/check_dir_file.rb
Method check_path
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def check_path(path)
begin
if (fd = simple.open("\\#{path}", 'o')) # mode is open only - do not create/append/write etc
print_good("File FOUND: \\\\#{rhost}\\#{datastore['SMBSHARE']}\\#{path}")
fd.close