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
1 changed files with 4 additions and 0 deletions

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'