Skip to content

Commit 6d07dff

Browse files
author
Vincent Herbulot
committed
Fix a typo that was preventing WAR deletion
I made a typo while refactoring jboss_deploymentfilerepository. This typo was preventing the WAR payload to be removed after its execution.
1 parent a48d605 commit 6d07dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/http/jboss/deployment_file_repository_scripts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def stager_jsp_with_payload(app_base, encoded_payload)
5656
%>
5757
<%
5858
String #{jboss_home_var} = System.getProperty("jboss.server.home.dir");
59-
String #{file_path_var} = #{jboss_home_var} + "/deploy/" + "#{app_base}.war";
59+
String #{file_path_var} = #{jboss_home_var} + "/deploy/management/" + "#{app_base}.war";
6060
try {
6161
String #{content_var} = "#{encoded_payload}";
6262
FileOutputStream #{fos_var} = new FileOutputStream(#{file_path_var});

0 commit comments

Comments
 (0)