Class: Spektr::Checks

Inherits:
Object
  • Object
show all
Defined in:
lib/spektr/checks.rb,
lib/spektr/checks/xss.rb,
lib/spektr/checks/csrf.rb,
lib/spektr/checks/send.rb,
lib/spektr/checks/sqli.rb,
lib/spektr/checks/i18n_xss.rb,
lib/spektr/checks/basic_auth.rb,
lib/spektr/checks/digest_dos.rb,
lib/spektr/checks/evaluation.rb,
lib/spektr/checks/header_dos.rb,
lib/spektr/checks/create_with.rb,
lib/spektr/checks/deserialize.rb,
lib/spektr/checks/file_access.rb,
lib/spektr/checks/csrf_setting.rb,
lib/spektr/checks/json_parsing.rb,
lib/spektr/checks/link_to_href.rb,
lib/spektr/checks/json_encoding.rb,
lib/spektr/checks/default_routes.rb,
lib/spektr/checks/content_tag_xss.rb,
lib/spektr/checks/dynamic_finders.rb,
lib/spektr/checks/file_disclosure.rb,
lib/spektr/checks/filter_skipping.rb,
lib/spektr/checks/mass_assignment.rb,
lib/spektr/checks/basic_auth_timing.rb,
lib/spektr/checks/command_injection.rb,
lib/spektr/checks/json_entity_escape.rb,
lib/spektr/checks/detailed_exceptions.rb,
lib/spektr/checks/cookie_serialization.rb

Defined Under Namespace

Classes: Base, BasicAuth, BasicAuthTiming, CommandInjection, ContentTagXss, CookieSerialization, CreateWith, Csrf, CsrfSetting, DefaultRoutes, Deserialize, DetailedExceptions, DigestDos, DynamicFinders, Evaluation, FileAccess, FileDisclosure, FilterSkipping, HeaderDos, I18nXss, JsonEncoding, JsonEntityEscape, JsonParsing, LinkToHref, MassAssignment, Send, Sqli, Xss

Class Method Summary collapse

Class Method Details

.load(only = false) ⇒ Object



3
4
5
6
7
# File 'lib/spektr/checks.rb', line 3

def self.load(only = false)
  Checks.constants.select do |c|
    Checks.const_get(c).is_a?(Class) && (!only || only && only.to_s == c.to_s)
  end.map { |c| Checks.const_get(c) }
end