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.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/auxiliary/spoof/dns/bailiwicked_host.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-MetasploitModule-calculate_race-for-pr


# Commit to git

git add modules/auxiliary/spoof/dns/bailiwicked_host.rbgit commit -m "better docs for MetasploitModule#calculate_race"


# Open pull request

gem 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!