Files
metasploit-gs/lib/msf/core/database_event.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
889 B
Ruby
Raw Normal View History

2014-10-08 14:01:58 -05:00
# Events that can occur in the host/service database.
module Msf::DatabaseEvent
2014-10-08 14:07:05 -05:00
# Called when a new client is added to the database. The client
# parameter is of type Client.
def on_db_client(client)
2014-10-08 14:01:58 -05:00
end
# Called when a new host is added to the database. The host parameter is
# of type Host.
def on_db_host(host)
end
2014-10-08 14:07:05 -05:00
# Called when an existing host's state changes
def on_db_host_state(host, ostate)
end
# Called when a new reference is created.
def on_db_ref(ref)
2014-10-08 14:01:58 -05:00
end
# Called when a new service is added to the database. The service
# parameter is of type Service.
def on_db_service(service)
end
2014-10-08 14:07:05 -05:00
# Called when an existing service's state changes
def on_db_service_state(host, port, ostate)
end
2014-10-08 14:01:58 -05:00
# Called when an applicable vulnerability is found for a service. The vuln
# parameter is of type Vuln.
def on_db_vuln(vuln)
end
end