rapid7/metasploit-framework

View on GitHub
lib/rex/proto/rfb/cipher.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method encrypt_ard has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.encrypt_ard(username, password, generator, key_length, prime_modulus, peer_public_key)
    generator = OpenSSL::BN.new(generator, 2)
    prime_modulus = OpenSSL::BN.new(prime_modulus, 2)
    peer_public_key = OpenSSL::BN.new(peer_public_key, 2)

Severity: Minor
Found in lib/rex/proto/rfb/cipher.rb - About 1 hr to fix

    Method encrypt_ard has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def self.encrypt_ard(username, password, generator, key_length, prime_modulus, peer_public_key)
    Severity: Minor
    Found in lib/rex/proto/rfb/cipher.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status