Metasploit mailing list archives

ruby coding question


From: Jeffs <jeffs () speakeasy net>
Date: Tue, 08 Dec 2009 17:28:30 -0500

I have a snippet of code in a sploit that looks like this:

out = new BufferedOutputStream(new FileOutputStream("c:\\\\#{@payload_name}"));

but I wish the file to go to %TMP% instead.

I've tried:

out = new BufferedOutputStream(new FileOutputStream("\%TMP\%\\\\{@payload_name}"));

but this throws out errors.

not being a ruby maven I suspect that TMP needs to be declared somewhere first and would appreciate some help, if it's out there.

thanks.
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: