Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <rz_core.h>
#include <rz_main.h>
#include <rz_types.h>
#include <rz_search.h>
#include <rz_util.h>
#include <rz_util/rz_print.h>
#include <rz_cons.h>
#include <rz_lib.h>
#include <rz_io.h>
#include <rz_bin.h>
Go to the source code of this file.
Classes | |
struct | RzfindOptions |
Functions | |
static void | rzfind_options_fini (RzfindOptions *ro) |
static void | rzfind_options_init (RzfindOptions *ro) |
static int | rzfind_open (RzfindOptions *ro, const char *file) |
static int | hit (RzSearchKeyword *kw, void *user, ut64 addr) |
static void | print_bin_string (RzBinFile *bf, RzBinString *string, PJ *pj) |
static int | show_help (const char *argv0, int line) |
static int | rzfind_open_file (RzfindOptions *ro, const char *file, const ut8 *data, int datalen) |
static int | rzfind_open_dir (RzfindOptions *ro, const char *dir) |
RZ_API int | rz_main_rz_find (int argc, const char **argv) |
|
static |
Definition at line 58 of file rz-find.c.
References addr, RzfindOptions::bsize, RzfindOptions::buf, RzfindOptions::comma, rz_search_keyword_t::count, RzfindOptions::cur, RzfindOptions::curfile, delta, eprintf, free(), i, IS_PRINTABLE, RzfindOptions::json, rz_search_keyword_t::keyword_length, PFMT64d, PFMT64x, RzfindOptions::pr, printf(), RzfindOptions::rad, rz_print_hexdump_str(), RzfindOptions::showstr, cmd_descs_generate::str, type, and RzfindOptions::widestr.
Referenced by add_hit_to_hits(), add_hit_to_sorted_hits(), construct_rop_gadget(), do_asm_search(), handle_forward_disassemble(), is_hit_inrange(), listcb(), print_rop(), prune_hits_in_addr_range(), prune_hits_in_hit_range(), rz_cmd_search(), rz_cons_grep_line(), rz_core_asm_back_disassemble_all(), rz_core_asm_bwdis_len(), rz_core_asm_hit_free(), rz_core_asm_hit_new(), rz_core_asm_strsearch(), rz_core_search_rop(), rz_core_visual_config(), rz_core_visual_trackflags(), rz_search_hit_new(), and rzfind_open_file().
|
static |
Definition at line 146 of file rz-find.c.
References rz_bin_string_t::length, rz_bin_file_t::o, rz_bin_string_t::ordinal, rz_bin_string_t::paddr, pj_end(), pj_kn(), pj_ks(), pj_o(), printf(), rz_bin_get_section_at(), rz_bin_object_get_vaddr(), rz_return_if_fail, rz_str_enc_as_string(), s, rz_bin_string_t::size, rz_bin_string_t::string, rz_bin_string_t::type, UT64_MAX, and rz_bin_string_t::vaddr.
Referenced by rzfind_open_file().
Definition at line 474 of file rz-find.c.
References RzfindOptions::align, rz_getopt_t::arg, argv, RzfindOptions::bsize, c, eprintf, free(), RzfindOptions::from, RzfindOptions::hexstr, RzfindOptions::identify, RzfindOptions::import, rz_getopt_t::ind, RzfindOptions::json, RzfindOptions::keywords, RzfindOptions::mask, RzfindOptions::mode, RzfindOptions::nonstop, NULL, RzfindOptions::pr, printf(), RzfindOptions::quiet, RzfindOptions::rad, rz_file_is_directory(), rz_file_slurp(), rz_getopt_init(), rz_getopt_next(), rz_hex_bin2strdup(), rz_list_append(), rz_list_free(), rz_main_version_print(), rz_num_math(), rz_print_new(), RZ_SEARCH_ESIL, RZ_SEARCH_KEYWORD, RZ_SEARCH_MAGIC, RZ_SEARCH_REGEXP, RZ_SEARCH_STRING, RZ_STR_ISEMPTY, RZ_STR_ISNOTEMPTY, rzfind_open(), rzfind_options_init(), show_help(), RzfindOptions::showstr, RzfindOptions::symbol, RzfindOptions::to, and RzfindOptions::widestr.
Referenced by MAIN_NAME(), and rz_main_rizin().
|
static |
Definition at line 456 of file rz-find.c.
References free(), NULL, rz_file_is_directory(), rz_stdin_slurp(), rz_str_newf(), rzfind_open_dir(), and rzfind_open_file().
Referenced by rz_main_rz_find(), and rzfind_open_dir().
|
static |
Definition at line 434 of file rz-find.c.
References files, create_tags_rz::fname, free(), NULL, rz_file_path_join(), rz_list_free(), rz_sys_dir(), and rzfind_open().
Referenced by rzfind_open().
|
static |
Definition at line 205 of file rz-find.c.
References RzfindOptions::align, RzfindOptions::bsize, RzfindOptions::buf, calloc(), rz_io_t::cb_printf, cmd, RzfindOptions::cur, RzfindOptions::curfile, done, eprintf, err, file, free(), RzfindOptions::from, RzfindOptions::hexstr, hit(), RzfindOptions::identify, RzfindOptions::import, imports(), RzfindOptions::json, RzfindOptions::keywords, list(), RzfindOptions::mask, RzfindOptions::mode, rz_bin_symbol_t::name, RzfindOptions::nonstop, NULL, rz_bin_file_t::o, rz_bin_symbol_t::paddr, PFMT64d, PFMT64x, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), print_bin_string(), printf(), RzfindOptions::quiet, rs, rz_bin_file_strings(), rz_bin_free(), rz_bin_new(), rz_bin_object_get_imports(), rz_bin_object_get_symbols(), rz_bin_open(), rz_bin_options_init(), rz_cons_free(), rz_cons_new(), rz_io_bind(), rz_io_free(), rz_io_new(), rz_io_open_nomap(), rz_io_pread_at(), rz_io_seek(), RZ_IO_SEEK_SET, rz_io_size(), rz_io_write_at(), rz_list_free(), RZ_PERM_R, rz_search_begin(), RZ_SEARCH_ESIL, rz_search_free(), RZ_SEARCH_KEYWORD, rz_search_keyword_new_hex(), rz_search_keyword_new_hexmask(), rz_search_keyword_new_str(), rz_search_keyword_new_wide(), rz_search_kw_add(), RZ_SEARCH_MAGIC, rz_search_new(), rz_search_set_callback(), RZ_SEARCH_STRING, rz_search_update(), rz_str_escape_sh(), rz_str_newf(), rz_sys_cmdf(), rz_sys_xsystem, rzfind_options_fini(), strdup(), RzfindOptions::symbol, symbols(), to, RzfindOptions::to, rz_bin_symbol_t::type, ut64(), UT64_MAX, rz_bin_symbol_t::vaddr, and RzfindOptions::widestr.
Referenced by rzfind_open().
|
static |
Definition at line 43 of file rz-find.c.
References RzfindOptions::buf, RzfindOptions::cur, and free().
Referenced by rzfind_open_file().
|
static |
Definition at line 48 of file rz-find.c.
References RzfindOptions::bsize, RzfindOptions::keywords, memset(), RzfindOptions::mode, NULL, rz_list_newf(), RZ_SEARCH_STRING, RzfindOptions::to, and UT64_MAX.
Referenced by rz_main_rz_find().
Definition at line 173 of file rz-find.c.
References setup::line, and printf().
Referenced by rz_diff_draw_tui(), rz_diff_hex_visual(), and rz_main_rz_find().