metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
SNMP::ObjectId#index
Returns an index based on the difference between this ObjectId
and the provided parent ObjectId.
For example, ObjectId.new("1.3.6.1.5").index("1.3.6.1") returns an
ObjectId of "5".Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/snmp/varbind.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-SNMP--ObjectId-index-for-pr
# Commit to gitgit add lib/snmp/varbind.rbgit commit -m "better docs for SNMP::ObjectId#index"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-SNMP--ObjectId-index-for-pr
hub pull-request
# Celebrate!