We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc9c104 + 798d79a commit 9981a24Copy full SHA for 9981a24
lib/msf/core/payload/java.rb
@@ -110,12 +110,12 @@ def generate_war(opts={})
110
zip.add_file('WEB-INF/', '')
111
zip.add_file('WEB-INF/web.xml', web_xml)
112
zip.add_file("WEB-INF/classes/", "")
113
- zip.add_file('metasploit/', '') # Create the metasploit dir
+ zip.add_file('WEB-INF/classes/metasploit/', '') # Create the metasploit dir
114
115
paths.each do |path_parts|
116
path = ['java', path_parts].flatten.join('/')
117
contents = ::MetasploitPayloads.read(path)
118
- zip.add_file(path_parts.join('/'), contents)
+ zip.add_file("WEB-INF/classes/" + path_parts.join('/'), contents)
119
end
120
121
zip.add_file("WEB-INF/classes/metasploit.dat", stager_config(opts))
0 commit comments