Class: WPScan::Finders::DynamicFinder::Version::Comment

Inherits:
Xpath
  • Object
show all
Defined in:
lib/wpscan/finders/dynamic_finder/version/comment.rb

Overview

Version finder in Comment, which is basically an Xpath one with a default Xpath of //comment()

Direct Known Subclasses

WpItemVersion::Comment, WpVersion::Comment

Class Method Summary collapse

Methods inherited from Xpath

#find

Methods inherited from Finder

#aggressive, child_class_constant, create_child_class, #find, #passive

Class Method Details

.child_class_constantsHash

Returns:

  • (Hash)


11
12
13
# File 'lib/wpscan/finders/dynamic_finder/version/comment.rb', line 11

def self.child_class_constants
  @child_class_constants ||= super().merge(PATTERN: nil, XPATH: '//comment()')
end