metasploit-framework

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

Ruby

Metasploit Framework

Msf::Util::EXE.to_war

Creates a Web Archive (WAR) file from the provided jsp code.

On Tomcat, WAR files will be deployed into a directory with the same name
as the archive, e.g. +foo.war+ will be extracted into +foo/+. If the
server is in a default configuration, deoployment will happen
automatically. See
{http://tomcat.apache.org/tomcat-5.5-doc/config/host.html the Tomcat
documentation} for a description of how this works.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/msf/util/exe.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Util--EXE-to_war-for-pr


# Commit to git

git add lib/msf/util/exe.rbgit commit -m "better docs for Msf::Util::EXE.to_war"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Util--EXE-to_war-for-pr

hub pull-request


# Celebrate!