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

Source | Google | Stack overflow

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 branch

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


# Commit to git

git add modules/post/windows/manage/add_user_domain.rbgit commit -m "better docs for MetasploitModule#run_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-run_cmd-for-pr

hub pull-request


# Celebrate!