Metasploit mailing list archives

meterpreter download function not working properly for me?


From: metasploit at backstep.net (Lukas Kuzmiak)
Date: Fri, 2 Oct 2009 15:33:09 +0200

Hello guys,

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:in
`update'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb:98:in
`stat'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb:50:in
`initialize'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb:65:in
`new'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb:65:in
`stat'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb:147:in
`cmd_download'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb:146:in
`each'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb:146:in
`cmd_download'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:234:in
`send'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:234:in
`run_command'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/ui/console.rb:94:in
`run_command'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:196:in
`run_single'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:191:in
`each'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:191:in
`run_single'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/ui/console.rb:60:in
`interact'/Users/lukash/metasploit/trunk/lib/rex/ui/text/shell.rb:123:in
`call'/Users/lukash/metasploit/trunk/lib/rex/ui/text/shell.rb:123:in
`run'/Users/lukash/metasploit/trunk/lib/rex/post/meterpreter/ui/console.rb:58:in
`interact'/Users/lukash/metasploit/trunk/lib/msf/base/sessions/meterpreter.rb:203:in
`_interact'/Users/lukash/metasploit/trunk/lib/rex/ui/interactive.rb:48:in
`interact'/Users/lukash/metasploit/trunk/lib/msf/ui/console/command_dispatcher/core.rb:1007:in
`cmd_sessions'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:234:in
`send'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:234:in
`run_command'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:196:in
`run_single'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:191:in
`each'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:191:in
`run_single'/Users/lukash/metasploit/trunk/lib/msf/ui/console/command_dispatcher/exploit.rb:143:in
`cmd_exploit'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:234:in
`send'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:234:in
`run_command'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:196:in
`run_single'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:191:in
`each'/Users/lukash/metasploit/trunk/lib/rex/ui/text/dispatcher_shell.rb:191:in
`run_single'/Users/lukash/metasploit/trunk/lib/rex/ui/text/shell.rb:127:in
`run'./msfconsole:82

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?

Thanks in advance for replies :)

-- 
Only wimps use tape backup: _real_ men just upload their important stuff on
ftp, and let the rest of the world mirror it ;). Torvalds, Linus
(1996-07-20).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.metasploit.com/pipermail/framework/attachments/20091002/8b680e69/attachment.html>


Current thread: