rapid7/metasploit-framework

View on GitHub
modules/post/windows/manage/inject_ca.rb

Summary

Maintainability
A
3 hrs
Test Coverage

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

  def run
    certfile = datastore['CAFILE']

    # Check file path
    begin
Severity: Major
Found in modules/post/windows/manage/inject_ca.rb - About 2 hrs to fix

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

      def initialize(info = {})
        super(
          update_info(
            info,
            'Name' => 'Windows Manage Certificate Authority Injection',
    Severity: Minor
    Found in modules/post/windows/manage/inject_ca.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status