Metasploit mailing list archives

Scraper problem


From: Matt Gardenghi <mtgarden () gmail com>
Date: Sun, 11 Jul 2010 16:25:32 -0400

I've been testing the AutoRunScript feature. It used to work for me, but seems to be failing now. At least with scraper. I tried this on two different machines. One was BT4, the other a stripped down Ubuntu 10.04 server. And by stripped down, I mean: core system plus Metasploit. I ran the install.bin and then updated.

Here is a log of what I've done:


[*] Started reverse handler on 192.168.30.132:12345
[*] Starting the payload handler...
[*] Sending stage (748032 bytes) to 192.168.30.130
[*] Meterpreter session 1 opened (192.168.30.132:12345 -> 192.168.30.130:1086) at 2010-07-11 16:15:03 -0400 [*] Session ID 1 (192.168.30.132:12345 -> 192.168.30.130:1086) processing AutoRunScript 'scraper'
[*] New session on 192.168.30.130:1086...
[*] Gathering basic system information...
[*] Exception: Rex::Post::Meterpreter::RequestError stdapi_sys_process_execute: Operation failed: 2 ["/opt/metasploit3/msf3/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb:163:in `execute'", "(eval):43:in `m_exec'", "(eval):126:in `block in run'", "(eval):125:in `open'", "(eval):125:in `run'", "/opt/metasploit3/msf3/lib/rex/script/base.rb:41:in `eval'", "/opt/metasploit3/msf3/lib/rex/script/base.rb:41:in `run'", "/opt/metasploit3/msf3/lib/rex/post/meterpreter/client.rb:183:in `execute_file'", "/opt/metasploit3/msf3/lib/msf/base/sessions/meterpreter.rb:182:in `execute_script'", "/opt/metasploit3/msf3/lib/msf/base/sessions/meterpreter_options.rb:59:in `on_session'", "/opt/metasploit3/msf3/lib/msf/core/handler.rb:217:in `register_session'", "/opt/metasploit3/msf3/lib/msf/core/handler.rb:200:in `create_session'", "/opt/metasploit3/msf3/lib/msf/core/payload/stager.rb:135:in `handle_connection_stage'", "/opt/metasploit3/msf3/lib/msf/core/payload/stager.rb:126:in `handle_connection'", "/opt/metasploit3/msf3/lib/msf/core/handler/reverse_tcp.rb:146:in `block (2 levels) in start_handler'"]

meterpreter > run scraper
[*] New session on 192.168.30.130:1086...
[*] Gathering basic system information...
[*] Exception: Rex::Post::Meterpreter::RequestError stdapi_sys_process_execute: Operation failed: 2 ["/opt/metasploit3/msf3/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb:163:in `execute'", "(eval):43:in `m_exec'", "(eval):126:in `block in run'", "(eval):125:in `open'", "(eval):125:in `run'", "/opt/metasploit3/msf3/lib/rex/script/base.rb:41:in `eval'", "/opt/metasploit3/msf3/lib/rex/script/base.rb:41:in `run'", "/opt/metasploit3/msf3/lib/rex/post/meterpreter/client.rb:183:in `execute_file'", "/opt/metasploit3/msf3/lib/msf/base/sessions/meterpreter.rb:182:in `execute_script'", "/opt/metasploit3/msf3/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:348:in `cmd_run'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'", "/opt/metasploit3/msf3/lib/rex/post/meterpreter/ui/console.rb:101:in `run_command'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `block in run_single'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'", "/opt/metasploit3/msf3/lib/rex/post/meterpreter/ui/console.rb:67:in `block in interact'", "/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:131:in `call'", "/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:131:in `run'", "/opt/metasploit3/msf3/lib/rex/post/meterpreter/ui/console.rb:65:in `interact'", "/opt/metasploit3/msf3/lib/msf/base/sessions/meterpreter.rb:233:in `_interact'", "/opt/metasploit3/msf3/lib/rex/ui/interactive.rb:48:in `interact'", "/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/core.rb:1217:in `cmd_sessions'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `block in run_single'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'", "/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/exploit.rb:176:in `cmd_exploit'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `block in run_single'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'", "/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'", "/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:141:in `run'", "/opt/metasploit3/msf3/msfconsole:112:in `<main>'"]


I then ran getsystem and tried it again to see if that would help. And still failing. Run persistence works.

Am I missing something?

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


Current thread: