metasploit-framework

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

Ruby

Metasploit Framework

Net::DNS::Names#dn_expand

Expand a compressed name in a DNS Packet object. Please
see RFC1025 for an explanation of how the compression
in DNS packets works, how may it be useful and how should
be handled.

This method accept two parameters: a raw packet data and an
offset, which indicates the point in the packet in which the
parsing has arrived.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/net/dns/names/names.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Net--DNS--Names-dn_expand-for-pr


# Commit to git

git add lib/net/dns/names/names.rbgit commit -m "better docs for Net::DNS::Names#dn_expand"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Net--DNS--Names-dn_expand-for-pr

hub pull-request


# Celebrate!