metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#calculate_race
Send a recursive query to the target server, then flood the server with non-recursive queries for the same entry. Calculate how many non-recursive queries we receive back until the real server responds. This should give us a ballpark figure for ns->ns latency. We can repeat this a few times to account for each nameserver the cache server may query for the target domain.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/auxiliary/spoof/dns/bailiwicked_host.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-calculate_race-for-pr
# Commit to gitgit add modules/auxiliary/spoof/dns/bailiwicked_host.rbgit commit -m "better docs for MetasploitModule#calculate_race"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-calculate_race-for-pr
hub pull-request
# Celebrate!