New enumeration system
This commit is contained in:
19
lib/common/models/wp_version/vulnerable.rb
Normal file
19
lib/common/models/wp_version/vulnerable.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# encoding: UTF-8
|
||||
|
||||
class WpVersion < WpItem
|
||||
|
||||
def vulns_file
|
||||
unless @vulns_file
|
||||
@vulns_file = WP_VULNS_FILE
|
||||
end
|
||||
@vulns_file
|
||||
end
|
||||
|
||||
def vulns_xpath
|
||||
"//wordpress[@version='#{@number}']/vulnerability"
|
||||
end
|
||||
|
||||
module Vulnerable
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user