2006-05-30 17:44:48 +02:00
|
|
|
The Framework supports various relational database through the use of plugins.
|
|
|
|
|
|
|
|
The database support has the following structure:
|
|
|
|
|
|
|
|
* Entity definitions for hosts, services, vulnerabilities, and notes
|
|
|
|
* Generic database API for manipulating entities
|
|
|
|
* Generic database command set for interacting with the backend
|
|
|
|
* Vendor-specific plugins for linking the API to a real database
|
|
|
|
* Generic plugins for database integration
|
|
|
|
|
|
|
|
[Entity Definitions]
|
|
|
|
|
|
|
|
lib/msf/core/db_objects.rb
|
|
|
|
data/sql/*.sql
|
|
|
|
|
|
|
|
[Generic API]
|
|
|
|
lib/msf/core/db.rb
|
2008-11-30 21:24:47 +01:00
|
|
|
lib/msf/core/db_manager.rb
|
2006-05-30 17:44:48 +02:00
|
|
|
|
|
|
|
[Generic Commands]
|
|
|
|
lib/msf/ui/console/command_dispatcher/db.rb
|
|
|
|
|
|
|
|
[Specific Plugins]
|
2008-11-30 21:24:47 +01:00
|
|
|
plugins/db_sqlite2.rb
|
|
|
|
plugins/db_sqlite3.rb
|
|
|
|
plugins/db_postgres.rb
|
|
|
|
plugins/db_mysql.rb
|
2006-05-30 17:44:48 +02:00
|
|
|
|
|
|
|
[Extra Plugins]
|
2008-11-30 21:24:47 +01:00
|
|
|
plugins/db_tracker.rb
|
2006-05-30 17:44:48 +02:00
|
|
|
|
|
|
|
To test the database support, install the appropriate Ruby support module,
|
|
|
|
start msfconsole, and load the vendor-specific plugin:
|
|
|
|
|
|
|
|
$ msfconsole
|
|
|
|
|
|
|
|
msf> load db_sqlite3
|
|
|
|
[*] Successfully loaded plugin: db_sqlite3
|
|
|
|
|
|
|
|
You can now use the "db" commands to interact with the database.
|
|
|
|
|