metasploit-framework

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

Ruby

Metasploit Framework

Msf::Exploit::Remote::BrowserAutopwn2#sort_bap_exploits

Modifies @bap_exploits by sorting. The newest and with the highest ranking goes on top.
This method is part of what makes BAP smarter. However, the list rearranged by this exploit
will not actually be the same exploit list served to every client. When a client a request,
#get_suitable_exploits will generate another list that will actually be used by the client
by going through what we have here, and filter out all the exploit modules that don't match
the target's requirements.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/exploit/browser_autopwn2.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Exploit--Remote--BrowserAutopwn2-sort_bap_exploits-for-pr


# Commit to git

git add lib/msf/core/exploit/browser_autopwn2.rbgit commit -m "better docs for Msf::Exploit::Remote::BrowserAutopwn2#sort_bap_exploits"


# 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--BrowserAutopwn2-sort_bap_exploits-for-pr

hub pull-request


# Celebrate!