Class Msf::DBManager
In: lib/msf/core/db_manager.rb
lib/msf/core/db.rb
Parent: Object

The DB module ActiveRecord definitions for the DBManager

Methods

Included Modules

Framework::Offspring

Attributes

active  [RW]  Returns true if we are ready to load/store data
usable  [RW]  Returns true if the prerequisites have been installed

Public Class methods

Public Instance methods

Determines if the database is functional

Connects this instance to a database

Disconnects a database session

This method iterates the hosts table calling the supplied block with the host instance of each entry. TODO: use the find() block syntax instead

This method iterates the services table calling the supplied block with the service instance of each entry.

This method iterates the vulns table calling the supplied block with the vuln instance of each entry.

Find or create a host matching this address/comm

Find or create a reference matching this name

Find or create a service matching this host/proto/port/state

Find or create a vuln matching this service/name

Look for an address across all comms

Find a reference matching this name

Find a vulnerability matching this name

This methods returns a list of all hosts in the database

Find all references matching a vuln

Reports a host as being in a given state by address.

This method reports a host‘s service state.

This methods returns a list of all services in the database

This methods returns a list of all vulnerabilities in the database

Find all vulns matching a reference

[Validate]