From 648214cad2cf0a7bbc70051140502018ddeec9dc Mon Sep 17 00:00:00 2001 From: James Lee Date: Tue, 1 Feb 2011 01:20:55 +0000 Subject: [PATCH] make help work the same in meterpreter as main console git-svn-id: file:///home/svn/framework3/trunk@11690 4d416f70-5f16-0410-b530-b9f4589650da --- .../meterpreter/ui/console/command_dispatcher/core.rb | 9 --------- lib/rex/ui/text/dispatcher_shell.rb | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb index d8c025cf3f..04fd73017a 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb @@ -179,15 +179,6 @@ class Console::CommandDispatcher::Core alias cmd_quit cmd_exit - # - # Displays the help menu. - # - def cmd_help(*args) - print(shell.help_to_s) - end - - alias cmd_? cmd_help - # # Interacts with a channel. # diff --git a/lib/rex/ui/text/dispatcher_shell.rb b/lib/rex/ui/text/dispatcher_shell.rb index 36e13264c7..547606be73 100644 --- a/lib/rex/ui/text/dispatcher_shell.rb +++ b/lib/rex/ui/text/dispatcher_shell.rb @@ -106,7 +106,7 @@ module DispatcherShell print_error("No help for #{cmd}, try -h") if cmd_found and not help_found print_error("No such command") if not cmd_found else - print(driver.help_to_s) + print(shell.help_to_s) end end