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

Inherits:
Xpath 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

Constant Summary

Constants inherited from Finder

Finder::DIRECT_ACCESS

Instance Attribute Summary

Attributes inherited from Finder

#progress_bar, #target

Class Method Summary collapse

Methods inherited from Xpath

#find

Methods inherited from Finder

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

Methods inherited from Finder

#aggressive, #browser, #create_progress_bar, #found_by, #hydra, #initialize, #passive, #titleize

Constructor Details

This class inherits a constructor from WPScan::Finders::Finder

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