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.
1 parent f0c989c commit a066105Copy full SHA for a066105
modules/exploits/multi/http/axis2_deployer.rb
@@ -98,10 +98,7 @@ def upload_exec(session,rpath)
98
99
# We need this class as a wrapper to run in a thread. For some reason
100
# the Payload class is giving illegal access exceptions without it.
101
- path = MetasploitPayloads.path("java", "metasploit", "PayloadServlet.class")
102
- fd = File.open(path, "rb")
103
- servlet = fd.read(fd.stat.size)
104
- fd.close
+ servlet = MetasploitPayloads.read("java", "metasploit", "PayloadServlet.class")
105
zip.add_file("metasploit/PayloadServlet.class", servlet)
106
107
contents = zip.pack
0 commit comments