metasploit-framework

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

Ruby

Metasploit Framework

Msf::Ui::Console::CommandDispatcher::Core#cmd_grep

Greps the output of another console command, usage is similar the shell grep command
grep [options] pattern other_cmd [other command's args], similar to the shell's grep [options] pattern file
however it also includes -k to keep lines and -s to skip lines.  grep -k 5 is useful for keeping table headers

Source | Google | Stack overflow

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 branch

git checkout -b -your-name--update-docs-Msf--Ui--Console--CommandDispatcher--Core-cmd_grep-for-pr


# Commit to git

git add lib/msf/ui/console/command_dispatcher/core.rbgit commit -m "better docs for Msf::Ui::Console::CommandDispatcher::Core#cmd_grep"


# 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--Ui--Console--CommandDispatcher--Core-cmd_grep-for-pr

hub pull-request


# Celebrate!