metasploit-framework

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

Ruby

Metasploit Framework

Msf::Exploit#exploit

Kicks off the actual exploit.  Prior to this call, the framework will
have validated the data store using the options associated with this
exploit module.  It will also pre-generate the desired payload, though
exploits can re-generate the payload if necessary.

This method is designed to be overriden by exploit modules.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/exploit.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Exploit-exploit-for-pr


# Commit to git

git add lib/msf/core/exploit.rbgit commit -m "better docs for Msf::Exploit#exploit"


# 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--Exploit-exploit-for-pr

hub pull-request


# Celebrate!