Class: CMSScanner::Controller::InterestingFindings
- Defined in:
- app/controllers/interesting_findings.rb
Overview
InterestingFindings Controller
Instance Method Summary collapse
Methods inherited from Base
#==, #after_scan, #before_scan, #datastore, #formatter, #output, #parsed_options, parsed_options=, #render, reset, #target, #tmp_directory, #user_interaction?
Instance Method Details
#cli_options ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/interesting_findings.rb', line 5 def [ OptChoice.new( ['--interesting-findings-detection MODE', 'Use the supplied mode for the interesting findings detection. '], choices: %w(mixed passive aggressive), normalize: :to_sym) ] end |
#run ⇒ Object
15 16 17 18 19 20 |
# File 'app/controllers/interesting_findings.rb', line 15 def run mode = [:interesting_findings_detection] || [:detection_mode] findings = target.interesting_findings(mode: mode) output('findings', findings: findings) unless findings.empty? end |