class CMSScanner::Finders::SameTypeFinders

This class is designed to handle same type results, such as enumeration of plugins, themes etc.

Public Instance Methods

run(opts = {}) click to toggle source

@param [ Hash ] opts @option opts [ Symbol ] :mode :mixed, :passive or :aggressive @option opts [ Boolean ] :sort Wether or not to sort the findings

@return [ Findings ]

# File lib/cms_scanner/finders/same_type_finders.rb, line 13
def run(opts = {})
  symbols_from_mode(opts[:mode]).each do |symbol|
    each do |finder|
      run_finder(finder, symbol, opts)
    end
  end

  findings.sort! if opts[:sort]

  filter_findings
end