metasploit-framework

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

Ruby

Metasploit Framework

SNMP::TrapListener#initialize

Start a trap handler thread.  If a block is provided then the block
is executed before trap handling begins.  This block is typically used
to define the trap handler blocks.

The trap handler blocks execute in the context of the trap handler thread.

The most specific trap handler is executed when a trap arrives.  Only one
handler is executed.  The handlers are checked in the following order:

1. handler for a specific OID
2. handler for a specific SNMP version
3. default handler

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/snmp/manager.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-SNMP--TrapListener-initialize-for-pr


# Commit to git

git add lib/snmp/manager.rbgit commit -m "better docs for SNMP::TrapListener#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-SNMP--TrapListener-initialize-for-pr

hub pull-request


# Celebrate!