Skip to content

Commit f2e7e9d

Browse files
authored
Update "/ lib" invocation on /bin/ls (#138)
1 parent 8f09d8b commit f2e7e9d

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/search_bytes/basic_searches.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ A basic search for a plain text string in a file would be something like:
44

55
```shell
66
$ 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"
1824
```
1925
2026
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

Comments
 (0)