Files
metasploit-gs/lib/metasploit/framework/database.rb
T
Luke Imhoff 0bb79ba890 Msf::DBManager#import_msf_xml refactor
[#46491831]

Move Msf::DBManager#import_msf_xml into
Msf::DBManager::ImportMsfXml#import_msf_xml and include
Msf::DBManager::ImportMsfXml to cut down size of the infamous db.rb.
Break up #import_msf_xml to have separate methods for parsing web_forms,
web_pages, and web_vulns.  The method for
web_vulns, #import_msf_web_vuln_element is needed so that it can be overridden in
Pro to handle the Pro-only changes to Mdm::WebVuln.
2013-04-01 16:06:40 -05:00

16 lines
285 B
Ruby

require 'metasploit/framework'
module Metasploit
module Framework
module Database
def self.configurations
YAML.load_file(configurations_pathname)
end
def self.configurations_pathname
Metasploit::Framework.root.join('config', 'database.yml')
end
end
end
end