metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Auxiliary::Report#store_loot
Store some data stolen from a session as a file Also stores metadata about the file in the database when available +ltype+ is an OID-style loot type, e.g. "cisco.ios.config". Ignored when no database is connected. +ctype+ is the Content-Type, e.g. "text/plain". Affects the extension the file will be saved with. +host+ can be an String address or a Session object +data+ is the actual contents of the file +filename+ and +info+ are only stored as metadata, and therefore both are ignored if there is no database
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/auxiliary/report.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Auxiliary--Report-store_loot-for-pr
# Commit to gitgit add lib/msf/core/auxiliary/report.rbgit commit -m "better docs for Msf::Auxiliary::Report#store_loot"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Auxiliary--Report-store_loot-for-pr
hub pull-request
# Celebrate!