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

zero output #10

Open
MyraBaba opened this issue Oct 6, 2024 · 0 comments
Open

zero output #10

MyraBaba opened this issue Oct 6, 2024 · 0 comments

Comments

@MyraBaba
Copy link

MyraBaba commented Oct 6, 2024

python3 src/arya.py -i example_rules/Eicar -o apt12Malware
[-] Input file/directory example_rules/Eicar, found 0 yara rules
[-] Starting Arya
[-] Building output file...
[-] Saving result to apt12Malware
[-] Checking result output against all files

[-] Summary:
[-] File apt12Malware size in kb: 0.0
[-] Number of rules triggered: 0/0 rules

[-] Done.

python3 src/arya.py -i example_rules/ -o MalwareAryaDefault.exe
[-] Input file/directory example_rules/, found 14 yara rules
[-] Starting Arya
[-] Building output file...
[-] Saving result to MalwareAryaDefault.exe
Traceback (most recent call last):
File "/home/bc/Projects/YARA/arya/src/arya.py", line 222, in
main()
File "/home/bc/Projects/YARA/arya/src/arya.py", line 218, in main
rule_reverser.print_triggered_and_summary()
File "/home/bc/Projects/YARA/arya/src/arya.py", line 178, in print_triggered_and_summary
triggered_rules.extend([rule for rule in self.test_yara(in_path) if rule])
File "/home/bc/Projects/YARA/arya/src/arya.py", line 172, in test_yara
yara_output = subprocess.run(['yara', rules_path, self._output_file_path], stdout=subprocess.PIPE).stdout.decode('utf-8')
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'yara'

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

1 participant