metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Ui::Console::CommandDispatcher::Core#retrieve_grep_lines
Returns an array of lines at the provided line number plus any before and/or after lines requested from all_lines by supplying the +before+ and/or +after+ parameters which are always positive
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/ui/console/command_dispatcher/core.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Ui--Console--CommandDispatcher--Core-retrieve_grep_lines-for-pr
# Commit to gitgit add lib/msf/ui/console/command_dispatcher/core.rbgit commit -m "better docs for Msf::Ui::Console::CommandDispatcher::Core#retrieve_grep_lines"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Ui--Console--CommandDispatcher--Core-retrieve_grep_lines-for-pr
hub pull-request
# Celebrate!