HELLO v3!!!

This commit is contained in:
Ryan Dewhurst
2018-09-26 21:12:01 +02:00
parent 28b9c15256
commit d268a86795
1871 changed files with 988118 additions and 0 deletions

31
lib/wpscan/references.rb Normal file
View File

@@ -0,0 +1,31 @@
module WPScan
# References module (which should be included along with the CMSScanner::References)
# to allow the use of the wpvulndb reference
module References
extend ActiveSupport::Concern
# See ActiveSupport::Concern
module ClassMethods
# @return [ Array<Symbol> ]
def references_keys
@references_keys ||= super << :wpvulndb
end
end
def references_urls
wpvulndb_urls + super
end
def wpvulndb_ids
references[:wpvulndb] || []
end
def wpvulndb_urls
wpvulndb_ids.reduce([]) { |acc, elem| acc << wpvulndb_url(elem) }
end
def wpvulndb_url(id)
"https://wpvulndb.com/vulnerabilities/#{id}"
end
end
end