metasploit-framework/lib/metasploit/framework/database.rb

16 lines
319 B
Ruby
Raw Normal View History

require 'metasploit/framework'
module Metasploit
2013-08-30 21:28:33 +00:00
module Framework
module Database
def self.configurations
YAML.load_file(configurations_pathname)
end
2013-08-30 21:28:33 +00:00
def self.configurations_pathname
Metasploit::Framework::Application.paths['config/database'].first
2013-08-30 21:28:33 +00:00
end
end
end
end