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.
8 9 10 |
# File 'lib/wpscan/db/wp_items.rb', line 8 def self.all_slugs .keys end |
.popular_slugs ⇒ Array<String>
Returns The slug of all popular items.
13 14 15 |
# File 'lib/wpscan/db/wp_items.rb', line 13 def self.popular_slugs .select { |_key, item| item['popular'] == true }.keys end |
.vulnerable_slugs ⇒ Array<String>
Returns The slug of all vulnerable items.
18 19 20 |
# File 'lib/wpscan/db/wp_items.rb', line 18 def self.vulnerable_slugs .select { |_key, item| item['vulnerabilities'] == true }.keys end |