Sha256: 1a2bb7ed69d56c94bfea6de1bf830bae32be6a2caa4f50e3a4c4ae95b801f055

Contents?: true

Size: 688 Bytes

Versions: 15

Compression:

Stored size: 688 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. '],
            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

15 entries across 15 versions & 1 rubygems

Version Path
cms_scanner-0.0.40.1 app/controllers/interesting_findings.rb
cms_scanner-0.0.40 app/controllers/interesting_findings.rb
cms_scanner-0.0.39.4 app/controllers/interesting_findings.rb
cms_scanner-0.0.39.3 app/controllers/interesting_findings.rb
cms_scanner-0.0.39.2 app/controllers/interesting_findings.rb
cms_scanner-0.0.39.1 app/controllers/interesting_findings.rb
cms_scanner-0.0.39.0 app/controllers/interesting_findings.rb
cms_scanner-0.0.38.4 app/controllers/interesting_findings.rb
cms_scanner-0.0.38.3 app/controllers/interesting_findings.rb
cms_scanner-0.0.38.2 app/controllers/interesting_findings.rb
cms_scanner-0.0.38.1 app/controllers/interesting_findings.rb
cms_scanner-0.0.38.0 app/controllers/interesting_findings.rb
cms_scanner-0.0.37.12 app/controllers/interesting_findings.rb
cms_scanner-0.0.37.11 app/controllers/interesting_findings.rb
cms_scanner-0.0.37.10 app/controllers/interesting_findings.rb