-
Notifications
You must be signed in to change notification settings - Fork 14.1k
How to deprecate a Metasploit module
wchen-r7 edited this page Oct 3, 2014
·
10 revisions
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.
- You are required to set a replacement of the module you wish to deprecate.
To use the Msf::Module::Deprecated
, here's how:
1 - In the module you wish to deprecate, add the following require
statement:
require 'msf/core/module/deprecated'
2 - Under class metasploit3
of your module, include the following:
include Msf::Module::Deprecated
3 - Define the DEPRECATION_DATE
constant:
DEPRECATION_DATE = Date.new(2014, 9, 21) # Sep 21
4 - Define the DEPRECATION_REPLACEMENT
constant:
# The new module is exploits/linux/http/dlink_upnp_exec_noauth
DEPRECATION_REPLACEMENT = 'exploits/linux/http/dlink_upnp_exec_noauth'
- Home Welcome to Metasploit!
- Using Metasploit A collection of useful links for penetration testers.
-
Setting Up a Metasploit Development Environment From
apt-get install
togit push
. - CONTRIBUTING.md What should your contributions look like?
- Landing Pull Requests Working with other people's contributions.
- Using Git All about Git and GitHub.
- Contributing to Metasploit Be a part of our open source community.
- Meterpreter All about the Meterpreter payload.