Metasploit Data Models
MSF database code, gemified
- Gem
- metasploit_data_models
- Repository
- rapid7/metasploit_data_models
- License
- BSD-3-Clause
- Stars
- 56
- Added
- August 16, 2026
About
MSF database code, gemified
In a Rails application, MetasploitDataModels acts a Rails Engine and the models are available to application just as if they were defined under app/models. If your Rails appliation needs to modify the models, this can be done using ActiveSupport.on_load hooks in initializers. The block passed to on_load hook is evaluated in the context of the model class, so defining method and including modules will work just like reopeninng the class, but ActiveSupport.on_load ensures that the monkey patches will work after reloading in development mode. Each class has a different on_load name, which is just the class name converted to an underscored symbol, so Mdm::ApiKey runs the :mdm_api_key load hooks, etc.
Installing it
# Gemfile
gem "metasploit_data_models"
Details
56 stars on GitHub · BSD-3-Clause licensed · maintained by rapid7. Source: https://github.com/rapid7/metasploit_data_models
Discussion (0)
Sign in to join the discussion.
No comments yet.