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.
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 branchgit checkout -b -your-name--update-docs-MetasploitModule-web_operation-for-pr
# Commit to gitgit add modules/exploits/linux/http/huawei_hg532n_cmdinject.rbgit commit -m "better docs for MetasploitModule#web_operation"
# Open pull requestgem 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!