metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#calc_new_size
take the original size and calculate a new one that meets the following requirements: - large enough to store all of the image data and the assembly stub - is also a valid x86 jmp instruction to land on the assembly stub
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/encoders/x86/bmp_polyglot.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-calc_new_size-for-pr
# Commit to gitgit add modules/encoders/x86/bmp_polyglot.rbgit commit -m "better docs for MetasploitModule#calc_new_size"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-calc_new_size-for-pr
hub pull-request
# Celebrate!