Move the db skip into the "web" console driver. FIXRM #7031

unstable
HD Moore 2012-06-29 10:46:15 -05:00
parent eb762b3653
commit 9204a5b124
2 changed files with 6 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class Driver < Msf::Ui::Driver
end
# Parse any specified database.yml file
if framework.db.usable and not opts['SkipDatabaseInit'] and not opts['Framework']
if framework.db.usable and not opts['SkipDatabaseInit']
# Append any migration paths necessary to bring the database online
if opts['DatabaseMigrationPaths']

View File

@ -47,6 +47,11 @@ class WebConsole
# Create a read subscriber
self.pipe.create_subscriber('msfweb')
# Skip database initialization if it is already configured
if framework.db and framework.db.usable and framework.db.migrated
opts['SkipDatabaseInit'] = true
end
# Initialize the console with our pipe
self.console = Msf::Ui::Console::Driver.new(
'msf',