metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#run_cmd
execute cmd and return the response is required since we need to use the 'UseThreadToken' hash
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/post/windows/manage/add_user_domain.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-run_cmd-for-pr
# Commit to gitgit add modules/post/windows/manage/add_user_domain.rbgit commit -m "better docs for MetasploitModule#run_cmd"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-run_cmd-for-pr
hub pull-request
# Celebrate!