@@ -4,17 +4,23 @@ A basic search for a plain text string in a file would be something like:
4
4
5
5
``` shell
6
6
$ rizin -q -c " / lib" /bin/ls
7
- Searching 3 bytes from 0x00400000 to 0x0041ae08: 6c 69 62
8
- hits: 9
9
- 0x00400239 hit0_0 " lib64/ld-linux-x86-64.so.2"
10
- 0x00400f19 hit0_1 " libselinux.so.1"
11
- 0x00400fae hit0_2 " librt.so.1"
12
- 0x00400fc7 hit0_3 " libacl.so.1"
13
- 0x00401004 hit0_4 " libc.so.6"
14
- 0x004013ce hit0_5 " libc_start_main"
15
- 0x00416542 hit0_6 " libs/"
16
- 0x00417160 hit0_7 " lib/xstrtol.c"
17
- 0x00417578 hit0_8 " lib"
7
+ Searching 3 bytes in [0x23548,0x23f18)
8
+ hits: 0
9
+ Searching 3 bytes in [0x0,0x3458)
10
+ hits: 4
11
+ Searching 3 bytes in [0x4000,0x17091)
12
+ hits: 0
13
+ Searching 3 bytes in [0x18000,0x1f458)
14
+ hits: 1
15
+ Searching 3 bytes in [0x22278,0x23540)
16
+ hits: 0
17
+ Searching 3 bytes in [0x20fd0,0x22278)
18
+ hits: 0
19
+ 0x00000319 hit0_0 " .............../lib64/ld-linux-x86-"
20
+ 0x00000f9a hit0_1 " _cxa_finalize.__libc_start_main.__c"
21
+ 0x000014a2 hit0_2 " con.lgetfilecon.libselinux.so.1.lib"
22
+ 0x000014b2 hit0_3 " libselinux.so.1.libc.so.6.LIBSELINU"
23
+ 0x00019c6f hit0_4 " -.full-iso.lc./.libs/.lt-./usr/shar"
18
24
` ` `
19
25
20
26
As can be seen from the output above, Rizin generates a " hit" flag for every entry found. You can then use the ` ps`
0 commit comments