Class: Pentest::BaseChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/pentest/checkers/base_checker.rb

Direct Known Subclasses

SqliChecker, XssChecker

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint, params) ⇒ BaseChecker

Returns a new instance of BaseChecker.



6
7
8
9
10
11
12
# File 'lib/pentest/checkers/base_checker.rb', line 6

def initialize(endpoint, params)
  @params = params
  @warnings = []
  @endpoint = endpoint
  @route = endpoint.route
  @app_path = endpoint.app_path
end

Class Attribute Details

.descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/pentest/checkers/base_checker.rb', line 3

def description
  @description
end