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.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/handler.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Handler-handle_connection-for-pr
# Commit to gitgit add lib/msf/core/handler.rbgit commit -m "better docs for Msf::Handler#handle_connection"
# Open pull requestgem 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!