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:
- nexpose_connect connection refused error..... keshav singh solanki (Dec 04)
- Re: nexpose_connect connection refused error..... HD Moore (Dec 05)
- ruby coding question Jeffs (Dec 08)
- Re: ruby coding question HD Moore (Dec 08)
- patchup prefix Jeffs (Dec 10)
- Re: patchup prefix egypt (Dec 10)
- Re: patchup prefix HD Moore (Dec 10)
- exploit -j command Jeffs (Dec 10)
- Re: exploit -j command egypt (Dec 10)
- possible bug in MSFCLI and msfencode? Thomas Werth (Dec 10)
- Re: possible bug in MSFCLI and msfencode? HD Moore (Dec 10)
- Re: possible bug in MSFCLI and msfencode? Thomas Werth (Dec 10)
- ruby coding question Jeffs (Dec 08)
- Re: possible bug in MSFCLI and msfencode? Thomas Werth (Dec 10)
- Re: nexpose_connect connection refused error..... HD Moore (Dec 05)