26 lines
451 B
Ruby
26 lines
451 B
Ruby
# encoding: UTF-8
|
|
|
|
class WpVersion < WpItem
|
|
module Vulnerable
|
|
|
|
# @return [ String ] The path to the file containing vulnerabilities
|
|
def vulns_file
|
|
unless @vulns_file
|
|
@vulns_file = WP_VULNS_FILE
|
|
end
|
|
@vulns_file
|
|
end
|
|
|
|
# @return [ String ]
|
|
def identifier
|
|
@number
|
|
end
|
|
|
|
# @return [ String ]
|
|
# def vulns_xpath
|
|
# "//wordpress[@version='#{@number}']/vulnerability"
|
|
# end
|
|
|
|
end
|
|
end
|