Class: Ronin::App::Validations::ReconParams

Inherits:
Dry::Validation::Contract
  • Object
show all
Includes:
Recon::Value::Parser
Defined in:
lib/ronin/app/validations/recon_params.rb

Overview

Validations for the form params submitted to POST /recon.

Constant Summary collapse

VALUE_REGEX =

Regex to match a value string.

/#{IP_RANGE_REGEX}|#{IP_REGEX}|#{WEBSITE_REGEX}|#{WILDCARD_REGEX}|#{HOSTNAME_REGEX}|#{DOMAIN_REGEX}/

Class Method Summary collapse

Class Method Details

.call(params) ⇒ Dry::Validation::Result

Initializes and calls the validation contract.

Parameters:

  • params (Hash{String => Object})

    The HTTP params to validate.

Returns:

  • (Dry::Validation::Result)

    The validation result.



79
80
81
# File 'lib/ronin/app/validations/recon_params.rb', line 79

def self.call(params)
  new.call(params)
end