metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#valid_resp

helper function to verify that the response was actually for our request
Simply makes sure the response function code has most significant bit
of the request number set
returns 0 if everything is ok
returns -1 if functions don't match

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/auxiliary/admin/scada/moxa_credentials_recovery.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/auxiliary/admin/scada/moxa_credentials_recovery.rbgit commit -m "better docs for MetasploitModule#valid_resp"


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

hub pull-request


# Celebrate!