metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#has_protected_mode_prompt?

Unfortunately we don't currently have an explicit way to check whether Protected Mode is
actually enabled or not, so we can only rely on whatever is default on the OS. This should
allow BAP2 to always fire without worrying about the prmopt popping up, but the user can
still ignore this by setting ALLOWPROMPT to true in standalone mode.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/exploits/windows/browser/ie_unsafe_scripting.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/exploits/windows/browser/ie_unsafe_scripting.rbgit commit -m "better docs for MetasploitModule#has_protected_mode_prompt?"


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

hub pull-request


# Celebrate!