metasploit-framework

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

Ruby

Metasploit Framework

Msf::Ui::Console::Driver#on_variable_set

Called when a variable is set to a specific value.  This allows the
console to do extra processing, such as enabling logging or doing
some other kind of task.  If this routine returns false it will indicate
that the variable is not being set to a valid value.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/ui/console/driver.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Ui--Console--Driver-on_variable_set-for-pr


# Commit to git

git add lib/msf/ui/console/driver.rbgit commit -m "better docs for Msf::Ui::Console::Driver#on_variable_set"


# 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--Driver-on_variable_set-for-pr

hub pull-request


# Celebrate!