From 36ef2cb5a1d23ec65ce83aa0f142de59cc7f58cc Mon Sep 17 00:00:00 2001 From: Meatballs Date: Mon, 29 Apr 2013 23:14:32 +0100 Subject: [PATCH] x86 warning for mimikatz --- .../ui/console/command_dispatcher/mimikatz.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb index 53235803a4..ca0f3bc373 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb @@ -26,6 +26,10 @@ class Console::CommandDispatcher::Mimikatz # def initialize(shell) super + if (shell.client.platform =~ /x86/) and (shell.client.sys.config.sysinfo['Architecture'] =~ /x64/) + print_line + print_warning "Loaded x86 Mimikatz on an x64 architecture." + end end # @@ -83,8 +87,7 @@ class Console::CommandDispatcher::Mimikatz arguments = cmd_args.split(" ") end - print client.mimikatz.send_custom_command(cmd_func, arguments) - print_line + print_line client.mimikatz.send_custom_command(cmd_func, arguments) end def mimikatz_request(provider, method) @@ -106,7 +109,7 @@ class Console::CommandDispatcher::Mimikatz table << [acc[:authid], acc[:package], acc[:domain], acc[:user], acc[:password]] end - print_status table.to_s + print_line table.to_s return true end