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 a16f0543be..9ecdaddd51 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/mimikatz.rb @@ -106,7 +106,7 @@ class Console::CommandDispatcher::Mimikatz ) accounts.each do |acc| - table << [acc[:authid], acc[:package], acc[:domain], acc[:user], acc[:password].gsub("\n","")] + table << [acc[:authid], acc[:package], acc[:domain], acc[:user], (acc[:password] || "").gsub("\n","")] end print_line table.to_s