Because I do not even have the slightest clue on how to do it :)

Sent from my iPhone

On Feb 11, 2013, at 7:21 PM, Juan Vazquez <notifications@github.com> wrote:

> In modules/exploits/windows/local/persistence.rb:
> 
> > +		rexename = datastore['REXENAME']
> > +		delay = datastore['DELAY']
> > +		reg_val = datastore['REG_NAME']
> > +		template_pe = datastore['EXE::Template']
> > +		@clean_up_rc = ""
> > +		host,port = session.session_host, session.session_port
> > +
> > +		if rexe.nil?
> > +			script = create_script(delay, template_pe)
> > +			script_on_target = write_script_to_target(script,rexename)
> > +			if script_on_target == nil
> > +				# exit the module because we failed to write the file on the target host.
> > +				return
> > +			end
> > +		else
> > +			alt_pay_exe = get_custom_exe
> Any reason to not use an script when using a custom template? After talking with @jlee-r7 the use of an script could benefit support for shell sessions where the write of binary files could dont work so good. So not sure why dont use also a vbs script when providing an exe template. Just asking :)
> 
> —
> Reply to this email directly or view it on GitHub.
>