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

yara script throwing error "could not open file" #9

Open
Zshader opened this issue Jan 24, 2023 · 1 comment
Open

yara script throwing error "could not open file" #9

Zshader opened this issue Jan 24, 2023 · 1 comment

Comments

@Zshader
Copy link

Zshader commented Jan 24, 2023

image

image

tried running the file ./yara_full_scan.sh it gives the following error on the machines, tested it on a kali and a centos machine and observed the same output. Also, observing no such files as /usr/share/yara/yara_base_ruleset_compiled.yar .

Tried creating an empty file /usr/share/yara/yara_base_ruleset_compiled.yar too, and observed the same error.

@PwndYA
Copy link

PwndYA commented Jan 25, 2023

have you installed yara?
maybe you need to change the path in your script

root@toolbox:/opt/yara# which yara
/usr/local/bin/yara

yara_output=$(/usr/local/bin/yara -C -w -r -f -m /opt/yara/rules/compiled_test.yar "$f1")

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

2 participants