mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 10:33:30 +00:00
Fix the doc yara2/yara3
This commit is contained in:
parent
1db221ede0
commit
7458e34ddd
14
doc/yara.md
14
doc/yara.md
@ -27,7 +27,7 @@ Yara in radare2
|
||||
radare2 provides several commands, allowing the user, to add or remove rules,
|
||||
scan a file, and list or use rules tags.
|
||||
|
||||
You can list the yara commands with the following r2 command `yara [help]`.
|
||||
You can list the yara commands with the following r2 command `yara3 [help]`.
|
||||
|
||||
Rules
|
||||
-----
|
||||
@ -43,6 +43,14 @@ Example
|
||||
-------
|
||||
|
||||
Load a rule file on the fly, and then scan the currently opened file:
|
||||
```
|
||||
yara add /home/name/rules/malware.rules
|
||||
yara scan
|
||||
```
|
||||
Yara versions
|
||||
-------------
|
||||
|
||||
yara add /home/name/rules/malware.rules
|
||||
yara scan
|
||||
Because radare2 has support for both yara versions currently,
|
||||
depending from the version/plugin you've loaded, you need
|
||||
to use the proper versioned command.
|
||||
E.g. `yara2` or `yara3`. For example `yara3 scan`.
|
||||
|
Loading…
Reference in New Issue
Block a user