metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::Plugin#initialize

Initializes the plugin instance with the supplied framework instance.
The opts parameter is a hash of custom arguments that may be useful for a
plugin.  Some of the pre-defined arguments are:

LocalInput

	The local input handle that implements the Rex::Ui::Text::Input
	interface.

LocalOutput

	The local output handle that implements the Rex::Ui::Output interface.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/msf/core/plugin.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Plugin-initialize-for-pr


# Commit to git

git add lib/msf/core/plugin.rbgit commit -m "better docs for Msf::Plugin#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Plugin-initialize-for-pr

hub pull-request


# Celebrate!