Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with C++ #9

Open
kschwartzrch opened this issue Dec 16, 2021 · 7 comments
Open

Issue with C++ #9

kschwartzrch opened this issue Dec 16, 2021 · 7 comments

Comments

@kschwartzrch
Copy link

kschwartzrch commented Dec 16, 2021

No matter what I do I cannot get this to run. Thank you guys for releasing this tool to others but I've installed every C++ library (located here: https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170) but still get the same error.

Any one else getting this?

@RossCamardo
Copy link

Having the same issue. everyone says you need the C++ latest etc but i have done that several times and it's still same. So that answer has not helped. there has to be something else.

@RossCamardo
Copy link

Ok im fairly sure its just cus where you call the PS1 from... If you call it from the folder it lives in it runs fine. it you call it from somewhere else fails. That's the issue. needs to see the other files.

@Datto-StanLee
Copy link

Datto-StanLee commented Dec 17, 2021

Hi, the latest version shouldn't have such issues with the directory, but yes, it is best practice to call the script from the folder it resides in.
To properly triage issues running YARA, try double-clicking on the binary outside of the script. It should give you a more descriptive error than what we can get from running it via command-line.
Cheers – SL

@kschwartzrch
Copy link
Author

I am calling the PS1 directly from the folder as told and when i click the yara or run it manually with their test rule it works just fine... only your script says that C++ is needed.

@RossCamardo
Copy link

for the C++ stuff they didn't include. you gotta download those. Its mentioned in a separate issue here. I'm having an issue wrapping my head around calling it from the folder its in. I can do that on the system. But from an RMM i think commands just run where they run. There is probably some obvious logic I'm missing.

@kschwartzrch
Copy link
Author

Calling it from which folder? the folder that C++ runtimes are in? If so where is that? I have installed all of them from download link above.

@DavidWForeman
Copy link

Currently check for YARA32.exe can run with VC++ runtime is failing.

yara32.exe - System Error

The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem.

OK

VC is downloaded and installed. vcruntime140.dll is found in the C:\windows\system32 folder.

https://aka.ms/vs/17/release/vc_redist.x64.exe - this is the specific link found on the page you have link to.

I have repaired, Uninstalled and re-installed and keep getting the same result.

yara64.exe. doesn't have the same problem.

Upon further investigation, it appears that installing both vc_redist platforms is required. Perhaps this could be made clearer.
Of course, if most machines are 64 bit it isn't necessary to test both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants