PS D:\malwaredetection> python run.py run .\samples\safe.txt
2023-04-12 19:08:08 70e7521c7a22 root[1] INFO Starting malware scanner
2023-04-12 19:08:08 70e7521c7a22 root[1] INFO Scanning /app/mount/.\samples\safe.txt
Traceback (most recent call last):
File "//app/main.py", line 192, in <module>
main()
File "//app/main.py", line 183, in main
matches = handle_input(path, rules)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "//app/main.py", line 52, in handle_input
return scan_file(path, rules)
^^^^^^^^^^^^^^^^^^^^^^
File "//app/main.py", line 124, in scan_file
matches = rules.match(path)
^^^^^^^^^^^^^^^^^
yara.Error: could not open file "/app/mount/.\samples\safe.txt"
run.py doesn't properly copy in files when run in Powershell instead of WSL
See the comment
# no promises this works on Windows