Module: WPScan::DB

Defined in:
lib/wpscan/db.rb,
lib/wpscan/db/theme.rb,
lib/wpscan/db/plugin.rb,
lib/wpscan/db/schema.rb,
lib/wpscan/db/themes.rb,
lib/wpscan/db/plugins.rb,
lib/wpscan/db/updater.rb,
lib/wpscan/db/wp_item.rb,
lib/wpscan/db/wp_items.rb,
lib/wpscan/db/wp_version.rb,
lib/wpscan/db/dynamic_finders.rb

Overview

DB

Defined Under Namespace

Classes: DynamicFinders, DynamicPluginFinders, DynamicThemeFinders, Fingerprint, Path, Plugin, Plugins, Theme, Themes, Updater, Version, WpItem, WpItems

Class Method Summary collapse

Class Method Details

.init_dbObject



20
21
22
23
24
25
26
# File 'lib/wpscan/db.rb', line 20

def self.init_db
  db_file ||= File.join(DB_DIR, 'wordpress.db')

  # DataMapper::Logger.new($stdout, :debug)
  DataMapper.setup(:default, "sqlite://#{db_file}")
  DataMapper.auto_upgrade!
end