Skip to content

Commit 36ef2cb

Browse files
committed
x86 warning for mimikatz
1 parent 02788f7 commit 36ef2cb

File tree

1 file changed

+6
-3
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+6
-3
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class Console::CommandDispatcher::Mimikatz
2626
#
2727
def initialize(shell)
2828
super
29+
if (shell.client.platform =~ /x86/) and (shell.client.sys.config.sysinfo['Architecture'] =~ /x64/)
30+
print_line
31+
print_warning "Loaded x86 Mimikatz on an x64 architecture."
32+
end
2933
end
3034

3135
#
@@ -83,8 +87,7 @@ def cmd_mimikatz_command(*args)
8387
arguments = cmd_args.split(" ")
8488
end
8589

86-
print client.mimikatz.send_custom_command(cmd_func, arguments)
87-
print_line
90+
print_line client.mimikatz.send_custom_command(cmd_func, arguments)
8891
end
8992

9093
def mimikatz_request(provider, method)
@@ -106,7 +109,7 @@ def mimikatz_request(provider, method)
106109
table << [acc[:authid], acc[:package], acc[:domain], acc[:user], acc[:password]]
107110
end
108111

109-
print_status table.to_s
112+
print_line table.to_s
110113

111114
return true
112115
end

0 commit comments

Comments
 (0)