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:
parent
73d454387c
commit
ac28c70dab
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user