Module: WPScan::Finders::DynamicFinder::WpVersion::Finder

Included in:
BodyPattern, Comment, HeaderPattern, JavascriptVar, QueryParameter, Xpath
Defined in:
lib/wpscan/finders/dynamic_finder/wp_version.rb

Instance Method Summary collapse

Instance Method Details

#create_version(number, finding_opts) ⇒ Object



8
9
10
11
12
# File 'lib/wpscan/finders/dynamic_finder/wp_version.rb', line 8

def create_version(number, finding_opts)
  return unless Model::WpVersion.valid?(number)

  Model::WpVersion.new(number, version_finding_opts(finding_opts))
end