Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/docs/metasploit-framework.wiki/How-to-deprecate-a-Metasploit-module.md
Views: 11765
Metasploit has a very specific way to deprecate a module. To do so, you must be using the Msf::Module::Deprecated mixin. The reason you must be using this mixin is because two things:
You are required to set a deprecation date. That way we know when to remove it, which is done manually.
You are optionally allowed to set a replacement of the module you wish to deprecate.
Usage
To use the Msf::Module::Deprecated
, here's how:
1 - Under class MetasploitModule
of your module, include the following:
2a - When moving a module, use the moved_from
method in the new module to add an alias to the old module name:
2b - Use the deprecated
method to assign a deprecation date and replacement module:
2c - Alternatively, define the DEPRECATION_DATE
and DEPRECATION_REPLACEMENT
constants:
When the user loads that module, they should see a warning like this: