Neo23x0 / Loki

Loki - Simple IOC and YARA Scanner
https://www.nextron-systems.com/compare-our-scanners/
GNU General Public License v3.0
3.4k stars 583 forks source link

Cannot print certain characters to command line #76

Closed felixfx2 closed 3 years ago

felixfx2 commented 7 years ago

Hi Florian,

I get this everytime i try to run this from my scripting agent (it runs in powershell). Loki does not start scanning and there is no log output, this is the output from my scripting agent.

Is this a bug ?

Cannot print certain characters to command line - see log file for full unicode encoded log line
Traceback (most recent call last):
  File "<string>", line 1366, in <module>
  File "X:\pyInstaller-2.1\loki\build\loki\out00-PYZ.pyz\lib.lokilogger", line 86, in log
  File "X:\pyInstaller-2.1\loki\build\loki\out00-PYZ.pyz\lib.lokilogger", line 100, in log_to_std
out
TypeError: encode() argument 1 must be string, not None
shohnz commented 7 years ago

I get the same issue running from psexec

Neo23x0 commented 6 years ago

FYI The alternative scanner SPARK Core, which shouldn't have this issue, has been released this month https://www.nextron-systems.com/spark-core/

Neo23x0 commented 3 years ago

Shouldn't be a problem anymore with the py3 version or use THOR Lite