metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
SNMP::TrapListener#on_trap_default
Define the default trap handler. The default trap handler block is executed only if no other block is applicable. This handler should expect to receive both SNMPv1_Trap and SNMPv2_Trap objects.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/snmp/manager.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-SNMP--TrapListener-on_trap_default-for-pr
# Commit to gitgit add lib/snmp/manager.rbgit commit -m "better docs for SNMP::TrapListener#on_trap_default"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-SNMP--TrapListener-on_trap_default-for-pr
hub pull-request
# Celebrate!