rafind2 - Man Page

advanced command-line byte pattern search in files


rafind2[-cijzZXLnrhqv] [-b size] [-f from] [-F file] [-t to] [-[m|s|e] str] [-V s:val] [-x hex] file|dir


rafind2 is a program to find byte patterns in files

The options are:


Disable colorful output (for -X and such)


Search for zero-terminated strings


Output in JSON format

-a align

Only accept aligned hits

-s str

Search for a specific string

-S str

Search for a specific wide string

-V size:value

Search for a little-endian value of given size. For example -V 4:123

-e regex

Search for regular expression string matches

-x hex

Search for an hexpair string


Identify file type (like file, uses r2 -qcpm)


List available IO plugins


Carve for known file types using the r_magic signatures

-M mask

Set binary mask to be applied

-f from

Specify the source address

-F file

Read the keyword to search from the contents of the given file

-t to

Specify the target address


Display hexdump of search results


Display zero-terminated strings results


Do not stop the search when a read error occurs


Show output in radare commands

-b size

Define block size


Quiet mode - do not show headings (filenames) above matching contents (default for searching a single file)


Show help message


Print version and exit

See Also



pancake <pancake@nopcode.org>

Referenced By


June 24, 2021