mimikatz
mimikatz copied to clipboard
Prevent infinite loop in main
In contexts with no usable stdin
(for instance, PSRemoting), the prompt would loop forever. This patch checks the return value of fgetws
and breaks if it indicates an error in reading.