rapid7/metasploit-framework

View on GitHub
modules/exploits/linux/snmp/net_snmpd_rw_access.rb

Summary

Maintainability
A
2 hrs
Test Coverage

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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name'           => 'Net-SNMPd Write Access SNMP-EXTEND-MIB arbitrary code execution',
Severity: Minor
Found in modules/exploits/linux/snmp/net_snmpd_rw_access.rb - About 1 hr to fix

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

      def execute_command(cmd, opts = {})
        oid_1 = '1.3.6.1.4.1.8072.1.3.2.2.1.21.3.116.109.112'
        oid_1_value = 4
        oid_2 = '1.3.6.1.4.1.8072.1.3.2.2.1.2.3.116.109.112'
        oid_2_value =  datastore['SHELL']
    Severity: Minor
    Found in modules/exploits/linux/snmp/net_snmpd_rw_access.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status