metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Net::DNS::Header#inspect
Inspect method, prints out all the options and relative values.
p Net::DNS::Header.new
# ;; id = 18123
# ;; qr = 0 opCode: 0 aa = 0 tc = 0 rd = 1
# ;; ra = 0 ad = 0 cd = 0 rcode = 0
# ;; qdCount = 1 anCount = 0 nsCount = 0 arCount = 0
This method will maybe be changed in the future to a more pretty
way of display output.Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/net/dns/header.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Net--DNS--Header-inspect-for-pr
# Commit to gitgit add lib/net/dns/header.rbgit commit -m "better docs for Net::DNS::Header#inspect"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Net--DNS--Header-inspect-for-pr
hub pull-request
# Celebrate!