Skip to content

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Apr 16, 2024
1 parent 77aba16 commit 020feba
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,33 @@ After running this command:
r2pm -ci r2yara
```

## Documentation

See `man 7 r2yara` for some examples.

You will get the `yr` command inside `radare2` shell

```
[0x00000000]> yr?
Usage: yr [action] [args..] load and run yara rules inside r2
| yr [file] add yara rules from file
| yr-* unload all the rules
| yr? show this help (same as 'yara?')
| yr list loaded rules
| yrs[S] scan the current file, if S option is given it prints matching strings
| yrt list tags from the loaded rules
| yrt [tagname] list rules with given tag
| yrv show version information about r2yara and yara
[0x00000000]> q
```

Run it like this:

```
$ radare2 /bin/ls
> yr hello.yara # load this rule
> yrs # scan for all the loaded rules
HelloWorld
0x000045f9: yara0.HelloWorld_0 : 6c6962
0x00004685: yara0.HelloWorld_1 : 6c6962
```
10 changes: 5 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ done
: ${INSTALL_PROGRAM_STRIP:=${INSTALL} -m 755 -s}
: ${INSTALL_MAN:=${INSTALL} -m 444}
: ${INSTALL_LIB:=${INSTALL} -m 755 -c}
PKGNAME='r2yara' ; VERSION='1.2.0' ; VERSION_MAJOR=1; VERSION_MINOR=2; VERSION_PATCH=0; VERSION_NUMBER=10200; CONTACT_MAIL="[email protected]" ; CONTACT_NAME="jfrankowski" ; CONTACT="jfrankowski <[email protected]>" ;
PKGNAME='r2yara' ; VERSION='1.2.2' ; VERSION_MAJOR=1; VERSION_MINOR=2; VERSION_PATCH=2; VERSION_NUMBER=10202; CONTACT_MAIL="[email protected]" ; CONTACT_NAME="jfrankowski" ; CONTACT="jfrankowski <[email protected]>" ;
}

show_usage() {
cat <<EOF2
'configure' configures r2yara-1.2.0 to adapt to many kinds of systems.
'configure' configures r2yara-1.2.2 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -194,10 +194,10 @@ ocho() {

show_version() {
if [ "$QUIET" = 1 ]; then
echo "1.2.0"
echo "1.2.2"
exit 0
fi
echo "r2yara-1.2.0 configuration script done with acr v2.1.2.
echo "r2yara-1.2.2 configuration script done with acr v2.1.2.
The 'Free Software Foundation' message is only for autodetection.
Originally written by pancake <nopcode.org>."
exit 0
Expand Down Expand Up @@ -226,7 +226,7 @@ case $flag in
show_version ; ;;
-r|--r|--report)
echo "PKGNAME: r2yara"
echo "VERSION: 1.2.0"
echo "VERSION: 1.2.2"
echo "AUTHOR: jfrankowski"
echo "EMAIL: [email protected]"
echo "DESCRIPTION: yara plugin for radare2"
Expand Down
2 changes: 1 addition & 1 deletion configure.acr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKGNAME r2yara
VERSION 1.2.0
VERSION 1.2.2
DESCRIPTION yara plugin for radare2 ;
CONTACT jfrankowski ; [email protected]

Expand Down

0 comments on commit 020feba

Please sign in to comment.