Skip to content

Commit 665f6c3

Browse files
committed
Land rapid7#2590, gsub nil fix for mimikatz
2 parents 4b7a438 + 606411d commit 665f6c3

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def mimikatz_request(provider, method)
106106
)
107107

108108
accounts.each do |acc|
109-
table << [acc[:authid], acc[:package], acc[:domain], acc[:user], acc[:password].gsub("\n","")]
109+
table << [acc[:authid], acc[:package], acc[:domain], acc[:user], (acc[:password] || "").gsub("\n","")]
110110
end
111111

112112
print_line table.to_s

0 commit comments

Comments
 (0)