CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/core/database_event.rb
Views: 11779
1
# Events that can occur in the host/service database.
2
module Msf::DatabaseEvent
3
# Called when a new client is added to the database. The client
4
# parameter is of type Client.
5
def on_db_client(client)
6
end
7
8
# Called when a new host is added to the database. The host parameter is
9
# of type Host.
10
def on_db_host(host)
11
end
12
13
# Called when an existing host's state changes
14
def on_db_host_state(host, ostate)
15
end
16
17
# Called when a new reference is created.
18
def on_db_ref(ref)
19
end
20
21
# Called when a new service is added to the database. The service
22
# parameter is of type Service.
23
def on_db_service(service)
24
end
25
26
# Called when an existing service's state changes
27
def on_db_service_state(host, port, ostate)
28
end
29
30
# Called when an applicable vulnerability is found for a service. The vuln
31
# parameter is of type Vuln.
32
def on_db_vuln(vuln)
33
end
34
end
35
36