metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#ieee754_round
Do some crazyness to force Ruby to cast to a single-precision float and back to an integer. This emulates the behaviour of the soft-fp library and the float cast which is done at the end of Netgear's timestamp generator.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/exploits/linux/http/netgear_wnr2000_rce.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-ieee754_round-for-pr
# Commit to gitgit add modules/exploits/linux/http/netgear_wnr2000_rce.rbgit commit -m "better docs for MetasploitModule#ieee754_round"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-ieee754_round-for-pr
hub pull-request
# Celebrate!