RAFIND2(1) | General Commands Manual | RAFIND2(1) |
rafind2
— advanced
command-line byte pattern search in files
rafind2 |
[-a align]
[-b size]
[-c ] [-e
regex] [-f
from] [-F
file] [-h ]
[-i ] [-j ]
[-L ] [-m ]
[-M mask]
[-n ] [-q ]
[-r ] [-s
str] [-S
str] [-t
to] [-v ]
[-V s:num |
s:num1,num2] [-x
hex] [-X ]
[-z ] [-Z ]
file|dir .. |
rafind2
is a versatile program designed to
find byte patterns in files.
The following options are available:
-a
align-b
size-c
-e
regex-f
from-F
file-h
-i
-j
-L
-m
-M
mask-n
-q
-r
-s
str-S
str-t
to-v
-V
s:num | s:num1,num2-x
hex-X
-z
-Z
Search for a specific string in a file:
$ rafind2 -s "search_string" file.txt
Search for a hex pattern in all the files from directory:
$ rafind2 -x "909090" directory_path
Identify the file type using the magic database:
$ rafind2 -i binary_file
Search for the little endian 123 stored in a 4 byte word inside a file:
$ rafind2 -V 4:123 file.bin
https://www.radare.org/
pancake <pancake@nopcode.org>
March 16, 2024 |