Sha256: 04add871fbcbfeada954fe7fdd463287714ce9aa127eecdcb377aff8fa912381

Contents?: true

Size: 741 Bytes

Versions: 13

Compression:

Stored size: 741 Bytes

Contents

module CMSScanner
  module Controller
    # InterestingFindings Controller
    class InterestingFindings < Base
      def cli_options
        [
          OptChoice.new(
            ['--interesting-findings-detection MODE',
             'Use the supplied mode for the interesting findings detection. ' \
             'Modes: mixed, passive, aggressive'
            ],
            choices: %w(mixed passive aggressive),
            normalize: :to_sym)
        ]
      end

      def run
        mode = parsed_options[:interesting_findings_detection] || parsed_options[:detection_mode]
        findings = target.interesting_findings(mode: mode)

        output('findings', findings: findings) unless findings.empty?
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cms_scanner-0.0.32 app/controllers/interesting_findings.rb
cms_scanner-0.0.31 app/controllers/interesting_findings.rb
cms_scanner-0.0.30 app/controllers/interesting_findings.rb
cms_scanner-0.0.29 app/controllers/interesting_findings.rb
cms_scanner-0.0.28 app/controllers/interesting_findings.rb
cms_scanner-0.0.27 app/controllers/interesting_findings.rb
cms_scanner-0.0.26 app/controllers/interesting_findings.rb
cms_scanner-0.0.25 app/controllers/interesting_findings.rb
cms_scanner-0.0.24 app/controllers/interesting_findings.rb
cms_scanner-0.0.23 app/controllers/interesting_findings.rb
cms_scanner-0.0.22 app/controllers/interesting_findings.rb
cms_scanner-0.0.21 app/controllers/interesting_findings.rb
cms_scanner-0.0.20 app/controllers/interesting_findings.rb