[framework] Loading meterpreter extensions in ms 3.0 beta
mmiller at hick.org
mmiller at hick.org
Sat Feb 3 13:40:41 CST 2007
>From what I can tell, the only way that this could happen would be if
the client-side script for stdapi failed to load. I committed something
that should give a bit more verbose of an error message if this happens.
Can you verify that the following file exists:
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi.rb
On Sat, Feb 03, 2007 at 12:50:54PM +0100, Vedran V. wrote:
> Hello, thanks for helping me :)
>
> I don't see those commands if I type help :(
> (I also tried to grab the latest version from svn but there seems to be no change in behavior)
>
> meterpreter > help
>
> Core Commands
> =============
>
> Command Description
> ------- -----------
> ? Help menu
> channel Displays information about active channels
> close Closes a channel
> exit Terminate the meterpreter session
> help Help menu
> interact Interacts with a channel
> irb Drop into irb scripting mode
> migrate Migrate the server to another process
> quit Terminate the meterpreter session
> read Reads data from a channel
> run Executes a meterpreter script
> use Load a one or more meterpreter extensions
> write Writes data to a channel
>
> and also:
>
> meterpreter > ps
> [-] Unknown command: ps.
>
> meterpreter > ls
> [-] Unknown command: ls.
>
> And if I try something like "use stdapi" i get the following error:
>
> Loading extension stdapi...[-]
> failure: undefined method `new' for nil:NilClass ./lib/rex/ui/text/dispatcher_shell.rb:243:in
> `enstack_dispatcher'
> ./lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:431:in `add_extension_client'
> ./lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:250:in `cmd_use'
> ./lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:237:in `cmd_use'
> ./lib/rex/ui/text/dispatcher_shell.rb:229:in `run_command'
> ./lib/rex/post/meterpreter/ui/console.rb:95:in `run_command'
> ./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
> ./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
> ./lib/rex/post/meterpreter/ui/console.rb:60:in `interact'
> ./lib/rex/ui/text/shell.rb:115:in `run'
> ./lib/rex/post/meterpreter/ui/console.rb:58:in `interact'
> ./lib/msf/base/sessions/meterpreter.rb:170:in `_interact'
> ./lib/rex/ui/interactive.rb:39:in `interact'
> ./lib/msf/ui/console/command_dispatcher/core.rb:624:in `cmd_sessions'
> ./lib/rex/ui/text/dispatcher_shell.rb:229:in `run_command'
> ./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
> ./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
> ./lib/msf/ui/console/command_dispatcher/exploit.rb:146:in `cmd_exploit'
> ./lib/rex/ui/text/dispatcher_shell.rb:229:in `run_command'
> ./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
> ./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
> ./lib/rex/ui/text/shell.rb:119:in `run'
> ./msfconsole:66
>
>
> Vedran
>
> ----- Original Message Follows -----
> > Meterpreter in version 3.0 is different from version 2.x. Instead of
> > having a bunch of different extensions (fs, process, net, etc), the 3.0
> > meterpreter has this functionality merged into one extension called
> > stdapi. When you exploit something with meterpreter, stdapi should
> > automatically be loaded. If you type help, you should see all the
> > commands. Is this not the behavior you're seeing?
>
>
> --
> Odaberite Iskon.DUO - brzi (aDSL2+) internet + telefon uz u¹tedu do 30%!
> Saznajte vi¹e na http://www.iskon.hr
>
More information about the framework
mailing list