Skip to content

Commit c503e8a

Browse files
committed
Merge branch 'landing/4026' into upstream-master
Land rapid7#4026 * db.rb (DBManager) now in multiple files * Cucumber coverage for DB-related msfconsole commands
2 parents b02dc7a + 9456506 commit c503e8a

File tree

144 files changed

+9984
-9707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+9984
-9707
lines changed

lib/msf/core/database_event.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)