Sha256: a2625279335c14c1b620e3a8c1961099243e3a40a70dea8086c5d5955ce3d84b

Contents?: true

Size: 485 Bytes

Versions: 10

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module DB
    # WpItem - super DB class for Plugin, Theme and Version
    class WpItem
      # @param [ String ] identifier The plugin/theme slug or version number
      #
      # @return [ Hash ] The JSON data from the DB associated to the identifier
      def self.db_data(identifier)
        db[identifier] || {}
      end

      # @return [ JSON ]
      def self.db
        @db ||= read_json_file(db_file)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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