![]() |
![]()
| ![]() |
![]()
NAMEyara - find files matching patterns and rules written in a special-purpose language. SYNOPSISyara [OPTION]... [NAMESPACE:]RULES_FILE... FILE | DIR | PID DESCRIPTIONyara scans the given FILE, all files contained in directory DIR, or the process identified by PID looking for matches of patterns and rules provided in a special purpose-language. The rules are read from one or more RULES_FILE. The options to yara(1) are:
EXAMPLES$ yara /foo/bar/rules . Apply rules on /foo/bar/rules to all files on current directory. Subdirectories are not scanned. $ yara -t Packer -t Compiler /foo/bar/rules bazfile Apply rules on /foo/bar/rules to bazfile. Only reports rules tagged as Packer or Compiler. $ cat /foo/bar/rules | yara -r /foo Scan all files in the /foo directory and its subdirectories. Rules are read from standard input. $ yara -d mybool=true -d myint=5 -d mystring="my string" /foo/bar/rules bazfile Defines three external variables mybool myint and mystring. $ yara -x cuckoo=cuckoo_json_report /foo/bar/rules bazfile Apply rules on /foo/bar/rules to bazfile while passing the content of cuckoo_json_report to the cuckoo module. AUTHORVictor M. Alvarez <plusvic@gmail.com>;<vmalvarez@virustotal.com>
|