Class: WPScan::DB::WpItems

Inherits:
Object
  • Object
show all
Defined in:
lib/wpscan/db/wp_items.rb

Overview

WP Items

Direct Known Subclasses

Plugins, Themes

Class Method Summary collapse

Class Method Details

.all_slugsArray<String>

Returns The slug of all items.

Returns:

  • (Array<String>)

    The slug of all items



8
9
10
# File 'lib/wpscan/db/wp_items.rb', line 8

def self.all_slugs
  .keys
end

Returns The slug of all popular items.

Returns:

  • (Array<String>)

    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_slugsArray<String>

Returns The slug of all vulnerable items.

Returns:

  • (Array<String>)

    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