Class: CMSScanner::Finders::IndependentFinders

Inherits:
BaseFinders
  • Object
show all
Defined in:
lib/cms_scanner/finders/independent_finders.rb

Overview

This class is designed to handle independent results which are not related with each others e.g: interesting files

Instance Method Summary collapse

Methods inherited from BaseFinders

#findings

Instance Method Details

#run(opts = {}) ⇒ Findings

Parameters:

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • mode (Symbol)

    :mixed, :passive or :aggressive

Returns:



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cms_scanner/finders/independent_finders.rb', line 13

def run(opts = {})
  methods = symbols_from_mode(opts[:mode])

  each do |finder|
    methods.each do |symbol|
      run_finder(finder, symbol, opts)
    end
  end

  filter_findings
end