rapid7/metasploit-framework

View on GitHub
modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Method command_string has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def command_string
    jcl_jobcard +
      "//S1        EXEC ASMACLG,PARM.L='AC(1)'\n" \
      "//C.SYSLIB  DD DSN=SYS1.SISTMAC1,DISP=SHR\n" \
      "//          DD DSN=SYS1.MACLIB,DISP=SHR\n" \
Severity: Major
Found in modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb - About 2 hrs to fix

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

      def initialize(info = {})
        super(merge_info(
          info,
          'Name'          => 'JCL to Escalate Privileges',
          'Description'   => %q{(Elevate privileges for user. Adds
    Severity: Minor
    Found in modules/payloads/singles/cmd/mainframe/apf_privesc_jcl.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status