Path: blob/master/lib/msf/core/database_event.rb
19758 views
# Events that can occur in the host/service database.1module Msf::DatabaseEvent2# Called when a new client is added to the database. The client3# parameter is of type Client.4def on_db_client(client)5end67# Called when a new host is added to the database. The host parameter is8# of type Host.9def on_db_host(host)10end1112# Called when an existing host's state changes13def on_db_host_state(host, ostate)14end1516# Called when a new reference is created.17def on_db_ref(ref)18end1920# Called when a new service is added to the database. The service21# parameter is of type Service.22def on_db_service(service)23end2425# Called when an existing service's state changes26def on_db_service_state(host, port, ostate)27end2829# Called when an applicable vulnerability is found for a service. The vuln30# parameter is of type Vuln.31def on_db_vuln(vuln)32end33end343536