rapid7/metasploit-framework

View on GitHub
modules/auxiliary/admin/http/tomcat_ghostcat.rb

Summary

Maintainability
A
3 hrs
Test Coverage

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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Apache Tomcat AJP File Read',
Severity: Minor
Found in modules/auxiliary/admin/http/tomcat_ghostcat.rb - About 1 hr to fix

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

      def read_remote_file
        ajp_forward_request = ApacheJP::ApacheJPForwardRequest.new(
          http_method: ApacheJP::ApacheJPForwardRequest::HTTP_METHOD_GET,
          req_uri: '/index.txt',
          remote_addr: '127.0.0.1',
    Severity: Minor
    Found in modules/auxiliary/admin/http/tomcat_ghostcat.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status