metasploit-framework

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

Ruby

Metasploit Framework

Msf::PayloadSet#add_module

This method is called when a new payload module class is loaded up.  For
the payload set we simply create an instance of the class and do some
magic to figure out if it's a single, stager, or stage.  Depending on
which it is, we add it to the appropriate list.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/payload_set.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--PayloadSet-add_module-for-pr


# Commit to git

git add lib/msf/core/payload_set.rbgit commit -m "better docs for Msf::PayloadSet#add_module"


# 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--PayloadSet-add_module-for-pr

hub pull-request


# Celebrate!