1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Add database check to WMAP plugin

This commit is contained in:
William Vu 2016-12-31 17:36:32 -06:00
parent 73d454387c
commit ac28c70dab

View File

@ -2244,6 +2244,10 @@ class Plugin::Wmap < Msf::Plugin
def initialize(framework, opts)
super
if framework.db.active == false
raise 'Database not connected (try db_connect)'
end
color = self.opts["ConsoleDriver"].output.supports_color? rescue false
wmapversion = '1.5.1'