metasploit-framework

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

Ruby

Metasploit Framework

SNMP::BER#decode_sequence

Decode TLV data for an ASN.1 sequence.

Throws an InvalidTag exception if the tag is incorrect.

Returns a tuple containing the sequence data and any remaining 
unprocessed data that follows the sequence.

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_sequence-for-pr


# Commit to git

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


# 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_sequence-for-pr

hub pull-request


# Celebrate!