Sha256: b48822e802926bb418f430cd9fd868a84fca8bb4eac9099d898367a8d7d646b5

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module DB
    # WP Items
    class WpItems
      # @return [ Array<String> ] The slug of all items
      def self.all_slugs
        db.keys
      end

      # @return [ Array<String> ] The slug of all popular items
      def self.popular_slugs
        db.select { |_key, item| item['popular'] == true }.keys
      end

      # @return [ Array<String> ] The slug of all vulnerable items
      def self.vulnerable_slugs
        db.reject { |_key, item| item['vulnerabilities'].empty? }.keys
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wpscan-3.6.3 lib/wpscan/db/wp_items.rb
wpscan-3.6.2 lib/wpscan/db/wp_items.rb
wpscan-3.6.1 lib/wpscan/db/wp_items.rb
wpscan-3.6.0 lib/wpscan/db/wp_items.rb
wpscan-3.5.5 lib/wpscan/db/wp_items.rb
wpscan-3.5.4 lib/wpscan/db/wp_items.rb
wpscan-3.5.3 lib/wpscan/db/wp_items.rb
wpscan-3.5.2 lib/wpscan/db/wp_items.rb
wpscan-3.5.1 lib/wpscan/db/wp_items.rb
wpscan-3.5.0 lib/wpscan/db/wp_items.rb