Skip to content

zero output #10

@MyraBaba

Description

@MyraBaba

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions