metasploit-framework

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

Ruby

Metasploit Framework

Msf::Handler#handle_connection

Handles an established connection supplied in the in and out
handles.  The handles are passed as parameters in case this
handler is capable of handling multiple simultaneous
connections.  The default behavior is to attempt to create a session for
the payload.  This path will not be taken for multi-staged payloads.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/handler.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Handler-handle_connection-for-pr


# Commit to git

git add lib/msf/core/handler.rbgit commit -m "better docs for Msf::Handler#handle_connection"


# 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--Handler-handle_connection-for-pr

hub pull-request


# Celebrate!