💾 Archived View for radare.org › book › search_bytes › configurating_the_search.gmi captured on 2024-05-10 at 10:59:49. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-11-04)
-=-=-=-=-=-=-
The radare2 search engine can be configured through several configuration variables, modifiable with the `e` command.
e cmd.hit = x ; radare2 command to execute on every search hit e search.distance = 0 ; search string distance e search.in = [foo] ; pecify search boundarie. Supported values are listed under e search.in=?? e search.align = 4 ; only show search results aligned by specified boundary. e search.from = 0 ; start address e search.to = 0 ; end address e search.asmstr = 0 ; search for string instead of assembly e search.flags = true ; if enabled, create flags on hits
The `search.align` variable is used to limit valid search hits to certain alignment. For example, with `e search.align=4` you will see only hits found at 4-bytes aligned offsets.
The `search.flags` boolean variable instructs the search engine to flag hits so that they can be referenced later. If a currently running search is interrupted with `Ctrl-C` keyboard sequence, current search position is flagged with `search_stop`.