Class: WPScan::DB::WpItems
- Inherits:
-
Object
- Object
- WPScan::DB::WpItems
- Defined in:
- lib/wpscan/db/wp_items.rb
Overview
WP Items
Class Method Summary collapse
-
.all_slugs ⇒ Array<String>
The slug of all items.
-
.popular_slugs ⇒ Array<String>
The slug of all popular items.
-
.vulnerable_slugs ⇒ Array<String>
The slug of all vulnerable items.
Class Method Details
.all_slugs ⇒ Array<String>
Returns The slug of all items.
6 7 8 |
# File 'lib/wpscan/db/wp_items.rb', line 6 def self.all_slugs db.keys end |
.popular_slugs ⇒ Array<String>
Returns The slug of all popular items.
11 12 13 |
# File 'lib/wpscan/db/wp_items.rb', line 11 def self.popular_slugs db.select { |_key, item| item['popular'] == true }.keys end |
.vulnerable_slugs ⇒ Array<String>
Returns The slug of all vulnerable items.
16 17 18 |
# File 'lib/wpscan/db/wp_items.rb', line 16 def self.vulnerable_slugs db.reject { |_key, item| item['vulnerabilities'].empty? }.keys end |