Skip to content

Does not work in Windows Powershell / CMD #27

Description

@mostlyfireproof

run.py doesn't properly copy in files when run in Powershell instead of WSL
See the comment # no promises this works on Windows

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions