metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

MetasploitModule#static_arch_detect_js

This is served to requests for the static .js file.
Because we have to use javascript to detect arch, we have 3 different
versions of the static .js file (x86/mips/arm) to choose from. This
small snippet of js detects the arch and requests the correct file.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/exploits/android/browser/webview_addjavascriptinterface.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/exploits/android/browser/webview_addjavascriptinterface.rbgit commit -m "better docs for MetasploitModule#static_arch_detect_js"


# 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-static_arch_detect_js-for-pr

hub pull-request


# Celebrate!