metasploit-framework

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

Ruby

Metasploit Framework

Msf::Exploit::Remote::BrowserExploitServer#browser_profile_prefix

Returns a prefix that's unique to this browser exploit module.
This overrides the #browser_profile_prefix method from Msf::Exploit::Remote::BrowserProfileManager.
There are two way for BES to get this prefix, either:
* It comes from a datastore option. It allows BrowserAutoPwn to share the unique prefix with
  its child exploits, so that these exploits don't have to gather browser information again.
* If the datastore option isn't set, then we assume the user is firing the exploit as a
  standalone so we make somthing more unique, so that if there are two instances using the
  same exploit, they don't actually share info.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/exploit/remote/browser_exploit_server.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Exploit--Remote--BrowserExploitServer-browser_profile_prefix-for-pr


# Commit to git

git add lib/msf/core/exploit/remote/browser_exploit_server.rbgit commit -m "better docs for Msf::Exploit::Remote::BrowserExploitServer#browser_profile_prefix"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Exploit--Remote--BrowserExploitServer-browser_profile_prefix-for-pr

hub pull-request


# Celebrate!