Module: Msf::DatabaseEvent

Defined in:
lib/msf/core/db.rb

Overview

Events that can occur in the host/service database.

Instance Method Summary collapse

Instance Method Details

#on_db_client(client) ⇒ Object

Called when a new client is added to the database. The client parameter is of type Client.


125
126
# File 'lib/msf/core/db.rb', line 125

def on_db_client(client)
end

#on_db_host(host) ⇒ Object

Called when a new host is added to the database. The host parameter is of type Host.


118
119
# File 'lib/msf/core/db.rb', line 118

def on_db_host(host)
end

#on_db_host_state(host, ostate) ⇒ Object

Called when an existing host's state changes


105
106
# File 'lib/msf/core/db.rb', line 105

def on_db_host_state(host, ostate)
end

#on_db_ref(ref) ⇒ Object

Called when a new reference is created.


145
146
# File 'lib/msf/core/db.rb', line 145

def on_db_ref(ref)
end

#on_db_service(service) ⇒ Object

Called when a new service is added to the database. The service parameter is of type Service.


132
133
# File 'lib/msf/core/db.rb', line 132

def on_db_service(service)
end

#on_db_service_state(host, port, ostate) ⇒ Object

Called when an existing service's state changes


111
112
# File 'lib/msf/core/db.rb', line 111

def on_db_service_state(host, port, ostate)
end

#on_db_vuln(vuln) ⇒ Object

Called when an applicable vulnerability is found for a service. The vuln parameter is of type Vuln.


139
140
# File 'lib/msf/core/db.rb', line 139

def on_db_vuln(vuln)
end