metasploit-framework

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

Ruby

Metasploit Framework

Rex::Post::HWBridge::Extensions::CustomMethods::CustomMethods#send_request

Converts a cmd and args to a request to the hardware device
cmd is the cmd without a path
args are all KEY=value pairs.  All checks are assumed to have already been done
methods is a hash of all methods and their formatting
returns a formated response

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/rex/post/hwbridge/extensions/custom_methods/custom_methods.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rex--Post--HWBridge--Extensions--CustomMethods--CustomMethods-send_request-for-pr


# Commit to git

git add lib/rex/post/hwbridge/extensions/custom_methods/custom_methods.rbgit commit -m "better docs for Rex::Post::HWBridge::Extensions::CustomMethods::CustomMethods#send_request"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rex--Post--HWBridge--Extensions--CustomMethods--CustomMethods-send_request-for-pr

hub pull-request


# Celebrate!