gentilkiwi / mimikatz

A little tool to play with Windows security
http://blog.gentilkiwi.com/mimikatz
18.99k stars 3.62k forks source link

Prevent infinite loop in main #356

Open clubby789 opened 3 years ago

clubby789 commented 3 years ago

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.

T35R6braPwgDJKq commented 2 years ago

images