CrowdStrike / CAST

CrowdStrike Archive Scan Tool
MIT License
83 stars 19 forks source link

Getting error "Program 'cast.exe' failed to run: The filename or extension is too long.." #3

Closed anurbiswas closed 2 years ago

anurbiswas commented 2 years ago

Describe the bug Getting an error as subject while running the scan on a windows server. Is there a filename length limitation?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Expected to scan successfully

Screenshots

image

Desktop (please complete the following information):

rbcrwd commented 2 years ago

Windows itself has a command length limitation that you're running into. We're working on a workaround, but please just invoke the CAST binary yourself against the drives or directories you wish to scan.

bk-cs commented 2 years ago

I just added a commit and pull request to break the scans into groups of 20 files. This should avoid most string limitations.

rbcrwd commented 2 years ago

@bk-cs's PR should have addressed this sufficiently. Please let us know if you continue to see the error.