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

check for a database in nexpose_connect

git-svn-id: file:///home/svn/framework3/trunk@11320 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2010-12-13 19:21:27 +00:00
parent 256d3409d4
commit a398170c0d

View File

@ -50,6 +50,10 @@ class Plugin::Nexpose < Msf::Plugin
end
def cmd_nexpose_connect(*args)
if ! (framework.db and framework.db.usable)
print_error("No database has been configured, please use db_create/db_connect first")
return false
end
if(args.length == 0 or args[0].empty? or args[0] == "-h")
print_status("Usage: ")