metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#on_new_session
The following handles deleting the copied vbs payload and mof file See "struts_code_exec.rb" and "ms10_026_dbldecode.rb" for more information.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/exploits/windows/iis/msadc.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-on_new_session-for-pr
# Commit to gitgit add modules/exploits/windows/iis/msadc.rbgit commit -m "better docs for MetasploitModule#on_new_session"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-on_new_session-for-pr
hub pull-request
# Celebrate!