rapid7/metasploit-framework

View on GitHub
modules/post/windows/gather/file_from_raw_ntfs.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method run has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def run
    version = get_version_info

    fail_with(Failure::NoTarget, 'Module not valid for Windows 2000') if version.build_number == Msf::WindowsVersion::Win2000
    fail_with(Failure::NoAccess, 'You don\'t have administrative privileges') unless is_admin?
Severity: Minor
Found in modules/post/windows/gather/file_from_raw_ntfs.rb - About 1 hr to fix

    Method initialize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def initialize(info = {})
        super(
          update_info(
            info,
            'Name' => 'Windows File Gather File from Raw NTFS',
    Severity: Minor
    Found in modules/post/windows/gather/file_from_raw_ntfs.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status