metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#download_and_run_payload

Unfortunately we could not use the `echo' command stager since
the router's busybox echo does not understand the necessary
"-en" options. It outputs them to the binary instead.

We could not also use the `wget' command stager, as Huawei
crafted their own implementation with much different params.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/exploits/linux/http/huawei_hg532n_cmdinject.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/exploits/linux/http/huawei_hg532n_cmdinject.rbgit commit -m "better docs for MetasploitModule#download_and_run_payload"


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

hub pull-request


# Celebrate!