Metasploit mailing list archives

meterpreter download function not working properly for me?


From: hdm at metasploit.com (HD Moore)
Date: Fri, 02 Oct 2009 09:59:19 -0500

On Fri, 2009-10-02 at 15:33 +0200, Lukas Kuzmiak wrote:
I was just trying out new smb2 exploit and playing with meterpreter on
my local network, on my attempt to download a file i just got an
exception:

[-] Error running command download: uninitialized class variable
@@struct_stat in
Rex::Post::Meterpreter::Extensions::Stdapi::Stdapi 
/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb:57:
[ snip  ]
Mac OS X 10.6.1
tried with pre-compiled ruby and my own compiled ruby (newest build),
same behavior, any ideas what this could be causing?

I couldn't reproduce this on Linux with 1.9.1 or 1.8.7:
meterpreter > download boot.ini /tmp
[*] downloading: boot.ini -> /tmp
[*] downloaded : boot.ini -> /tmp/boot.ini

I also tried on Mac OS X using 1.8.7 and 1.9.1 (both built from source).
I found an issue with download -r (svn up), but not the issue you ran
into.

-HD



Current thread: