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