How do you install Lsassy and fix formatting issues on Windows?
Lsassy can be installed using pip: `pip install lsassy`. However, on Windows, the default output may contain garbled characters due to `termcolor` coloring not displaying properly in cmd. To fix this, modify the `logger.py` file located at `lib\site-packages\lsassy\logger.py` to check the OS and set color codes to empty strings on Windows (nt). The provided code in the article adjusts the formatter accordingly. After this modification, the tool can be tested with a command like `lsassy -u Administrator -p Password1 192.168.1.1`.
lsassy installationWindows formattingtermcolorlogger.py