rapid7/metasploit-framework

View on GitHub
modules/auxiliary/admin/smb/check_dir_file.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method check_path has 30 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in modules/auxiliary/admin/smb/check_dir_file.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status