rapid7/metasploit-framework

View on GitHub
modules/auxiliary/gather/advantech_webaccess_creds.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method do_login has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def do_login
    vprint_status("Attempting to login as '#{datastore['WEBACCESSUSER']}:#{datastore['WEBACCESSPASS']}'")

    uri = normalize_uri(target_uri.path, 'broadweb', 'user', 'signin.asp')

Severity: Minor
Found in modules/auxiliary/gather/advantech_webaccess_creds.rb - About 1 hr to fix

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

      def initialize(info={})
        super(update_info(info,
          'Name'           => "Advantech WebAccess 8.1 Post Authentication Credential Collector",
          'Description'    => %q{
            This module allows you to log into Advantech WebAccess 8.1, and collect all of the credentials.
    Severity: Minor
    Found in modules/auxiliary/gather/advantech_webaccess_creds.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status