metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#route_cmd

Get the CMD string vs ACTION

Backwards compatability: This was changed because the option name of "ACTION"
is special for some things, and indicates the :action attribute, not a datastore option.
However, this is a semi-popular module, though, so I'd prefer not to break people's
RC scripts that set ACTION. Note that ACTION is preferred over CMD.

TODO: The better solution is to use 'Action' and 'DefaultAction' info elements,
but there are some squirelly problems right now with rendering these for post modules.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/post/multi/manage/autoroute.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/post/multi/manage/autoroute.rbgit commit -m "better docs for MetasploitModule#route_cmd"


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

hub pull-request


# Celebrate!