Mirror of metasploit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

database_event.rb 889B

12345678910111213141516171819202122232425262728293031323334
  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. # Called when a new host is added to the database. The host parameter is
  8. # of type Host.
  9. def on_db_host(host)
  10. end
  11. # Called when an existing host's state changes
  12. def on_db_host_state(host, ostate)
  13. end
  14. # Called when a new reference is created.
  15. def on_db_ref(ref)
  16. end
  17. # Called when a new service is added to the database. The service
  18. # parameter is of type Service.
  19. def on_db_service(service)
  20. end
  21. # Called when an existing service's state changes
  22. def on_db_service_state(host, port, ostate)
  23. end
  24. # Called when an applicable vulnerability is found for a service. The vuln
  25. # parameter is of type Vuln.
  26. def on_db_vuln(vuln)
  27. end
  28. end