metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#macro_code
This macro code has the following in mind:
1. It checks the platform to eliminate less misfires. Since we have only tested on Windows/Linux/OSX,
we only want to fire at those.
2. Originally, I tried to embed the payload in the macro code, write it out and then execute it.
This turned out to be problematic, because for some reason OpenOffice is not able to
write a large string to a file (I've tried either shell("echo") or using the macro API).
The stager code is similar to web_delivery.Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/exploits/multi/misc/openoffice_document_macro.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-macro_code-for-pr
# Commit to gitgit add modules/exploits/multi/misc/openoffice_document_macro.rbgit commit -m "better docs for MetasploitModule#macro_code"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-macro_code-for-pr
hub pull-request
# Celebrate!