metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Net::DNS::Header#rCode_str
Returns an error array for the header response code, or
+nil+ if no error is generated.
error, cause = header.rCode_str
puts "Error #{error} cause by: #{cause}" if error
#=> Error ForErr caused by: The name server
#=> was unable to interpret the queryEdit
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-rCode_str-for-pr
# Commit to gitgit add lib/net/dns/header.rbgit commit -m "better docs for Net::DNS::Header#rCode_str"
# 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-rCode_str-for-pr
hub pull-request
# Celebrate!