metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#web_operation

Don't leave web sessions idle for too long (> 1 second). It triggers the
HTTP server's safety mechanisms and make it refuse further operations.

Thus do all desired web operations in chunks: log in, do our stuff (passed
block), and immediately log out. The router's own javescript code handles
this by sending a refresh request every second.

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-web_operation-for-pr


# Commit to git

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


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

hub pull-request


# Celebrate!