Module: WPScan::References
- Extended by:
- ActiveSupport::Concern
- Included in:
- Model::InterestingFinding, Model::XMLRPC, Vulnerability
- Defined in:
- lib/wpscan/references.rb
Overview
References module (which should be included along with the CMSScanner::References) to allow the use of the wpvulndb reference.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#references_urls ⇒ Object
17 18 19 |
# File 'lib/wpscan/references.rb', line 17 def references_urls wpvulndb_urls + super end |
#wpvulndb_ids ⇒ Object
21 22 23 |
# File 'lib/wpscan/references.rb', line 21 def wpvulndb_ids references[:wpvulndb] || [] end |
#wpvulndb_url(id) ⇒ Object
29 30 31 |
# File 'lib/wpscan/references.rb', line 29 def wpvulndb_url(id) "https://wpvulndb.com/vulnerabilities/#{id}" end |
#wpvulndb_urls ⇒ Object
25 26 27 |
# File 'lib/wpscan/references.rb', line 25 def wpvulndb_urls wpvulndb_ids.reduce([]) { |acc, elem| acc << wpvulndb_url(elem) } end |