metasploit-framework

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

Ruby

Metasploit Framework

SNMP::BER#decode_object_id

Unwrap TLV data for an ASN.1 object identifier.  This method extracts
the OID value as a character string but does not decode it further.

Throws an InvalidTag exception if the tag is incorrect.

Returns a tuple containing the object identifier (OID) and any
remaining unprocessed data.  The OID is represented as an array
of integers.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/snmp/ber.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-SNMP--BER-decode_object_id-for-pr


# Commit to git

git add lib/snmp/ber.rbgit commit -m "better docs for SNMP::BER#decode_object_id"


# 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--BER-decode_object_id-for-pr

hub pull-request


# Celebrate!