From cd12fc0ca236bc7f023c342f1ec456495155f528 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 20 Jun 2009 16:55:40 +0000 Subject: [PATCH] Ruby 1.9.1 fixes for incognito (thanks Carlos!) git-svn-id: file:///home/svn/framework3/trunk@6681 4d416f70-5f16-0410-b530-b9f4589650da --- .../ui/console/command_dispatcher/incognito.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/incognito.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/incognito.rb index 43c7bb1e12..c931291a79 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/incognito.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/incognito.rb @@ -78,17 +78,17 @@ class Console::CommandDispatcher::Incognito print_line("Delegation Tokens Available") print_line("========================================") - tokens['delegation'].each { |string| + tokens['delegation'].each_line { |string| print(string) - } + } print_line() print_line("Impersonation Tokens Available") print_line("========================================") - tokens['impersonation'].each { |string| + tokens['impersonation'].each_line { |string| print(string) - } + } print_line() @@ -106,7 +106,7 @@ class Console::CommandDispatcher::Incognito system_privilege_check username = args[0] - client.incognito.incognito_impersonate_token(username).each { |string| + client.incognito.incognito_impersonate_token(username).each_line { |string| print(string) } @@ -136,7 +136,7 @@ class Console::CommandDispatcher::Incognito username = args[0] password = args[1] - client.incognito.incognito_add_user(host, username, password).each { |string| + client.incognito.incognito_add_user(host, username, password).each_line { |string| print(string) } @@ -166,7 +166,7 @@ class Console::CommandDispatcher::Incognito groupname = args[0] username = args[1] - client.incognito.incognito_add_localgroup_user(host, groupname, username).each { |string| + client.incognito.incognito_add_localgroup_user(host, groupname, username).each_line { |string| print(string) } @@ -196,7 +196,7 @@ class Console::CommandDispatcher::Incognito groupname = args[0] username = args[1] - client.incognito.incognito_add_group_user(host, groupname, username).each { |string| + client.incognito.incognito_add_group_user(host, groupname, username).each_line { |string| print(string) } @@ -238,4 +238,4 @@ end end end end -end \ No newline at end of file +end