Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_egg.h>
#include <rz_bin.h>
#include <rz_main.h>
#include <rz_util/rz_print.h>
#include <rz_util.h>
Go to the source code of this file.
Macros | |
#define | ISEXEC (fmt != 'r') |
Functions | |
static int | usage (int v) |
static void | list (RzEgg *egg) |
static int | create (const char *format, const char *arch, int bits, const ut8 *code, int codelen) |
static int | openfile (const char *f, int x) |
RZ_API int | rz_main_rz_gg (int argc, const char **argv) |
|
static |
Definition at line 69 of file rz-gg.c.
References arch, b, bits(), eprintf, NULL, rz_bin_arch_options_init(), rz_bin_create(), rz_bin_free(), rz_bin_new(), rz_buf_data(), rz_buf_free(), autogen_x86imm::tmp, ut64(), and write.
Referenced by rz_main_rz_gg().
|
static |
Definition at line 52 of file rz-gg.c.
References p, rz_egg_t::plugins, printf(), RZ_EGG_PLUGIN_ENCODER, and RZ_EGG_PLUGIN_SHELLCODE.
Referenced by __childrenFlagsOf(), __fix_layout_h(), __fix_layout_w(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_panels_menu(), __io_maps(), __op_refs(), __sort(), __sorted_list(), _cs_disasm(), add_file_hash(), add_map(), add_map_reg(), add_refline(), add_single_addr_xrefs(), add_tls_callbacks(), addroflib(), agraph_follow_innodes(), analysis_function_vars_accesses(), analysis_get_function_in(), analysis_graph_to(), append_bound(), appendRef(), ar_parse_header(), Array(), autocmplt_cmd_arg_alias_type(), autocmplt_cmd_arg_any_type(), autocmplt_cmd_arg_enum_type(), autocmplt_cmd_arg_flag(), autocmplt_cmd_arg_global_var(), autocmplt_cmd_arg_struct_type(), autocmplt_cmd_arg_union_type(), autocomplete_process_path(), backtrace_fuzzy(), backtrace_windows(), backtrace_x86_32(), backtrace_x86_32_analysis(), backtrace_x86_64(), backtrace_x86_64_analysis(), blacklisted_word(), block_list_cb(), bsd_native_sysctl_map(), bsd_pid_list(), bsd_thread_list(), callback_list(), capture_list_pool_acquire(), capture_list_pool_get_mut(), clusterNodeAddFailureReport(), clusterNodeCleanupFailureReports(), clusterNodeDelFailureReport(), cmd_debug_current_modules(), cmd_debug_modules(), cmd_print_bars(), cmd_print_blocks(), collect_changes(), compare_list(), contains(), core_analysis_var_list_show(), count_positive(), count_positive8(), create_loc_list(), d_exprlist(), d_print_comp_inner(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), delete_element(), dem_list_append(), dem_list_delete(), dem_list_free(), dem_list_get_n(), dem_list_length(), dem_list_purge(), dem_list_split_iter(), dict2keylist(), do_analysis_search(), do_ref_search(), ds_build_op_str(), ds_print_esil_analysis(), ds_print_ptr(), ds_show_refs(), entries(), fcn_get_refs(), fcnjoin(), fill_exports_list(), filter_classes(), find_insertpoint(), find_longest_match(), free_lua_opnames(), function_list_print(), function_list_print_as_cmd(), function_list_print_quiet(), function_list_print_to_json(), function_list_print_to_table(), gdbr_parse_processes_xml(), gdbr_pids_list(), gdbr_read_processes_xml(), gdbr_threads_list(), get_calls(), get_closest_map(), get_constants(), get_functions_block_cb(), get_lua53_opnames(), get_lua54_opnames(), get_operand_possible_qualifiers(), get_pid_thread_list(), get_segments(), get_symbols_list(), get_xrefs(), getref(), hud_filter(), hudstuff_append(), imports(), in_list(), indx(), iter_dbt_commands(), linux_pid_list(), linux_thread_list(), list_count(), list_keys_cb(), list_vars(), listxrefs(), ls_append(), ls_clone(), ls_del_n(), ls_delete(), ls_delete_data(), ls_destroy(), ls_free(), ls_insert(), ls_insertion_sort(), ls_merge_sort(), ls_new(), ls_newf(), ls_pop(), ls_pop_head(), ls_prepend(), ls_sort(), ls_split_iter(), moduleAt(), mpc_cleanup(), mylistrefs_cb(), ns_free_exc_list(), ns_sync(), objc_find_refs(), ocaml_open(), parse_hash_algorithms(), parse_list(), pidlist_cb(), prepend_current_pc(), print_stats(), printVarSummary(), clang-format::process(), push_attr(), rd_0_2(), rd_a(), rd_a_hl(), rd_af_(), rd_c(), rd_cc(), rd_ex1(), rd_hl(), rd_hlx(), rd_in(), rd_jp(), rd_jr(), rd_ld(), rd_ld_hl(), rd_ld_nn(), rd_lda(), rd_ldbcdehla(), rd_nn_nn(), rd_nnc(), rd_out(), rd_r(), rd_r_(), rd_r_add(), rd_r_rr(), rd_rr_(), rd_rrxx(), rd_sp(), rd_stack(), recurse_list_cb(), recursive_search_glob(), relocs(), restore_attr(), rotate(), run_basic_block_analysis(), rz_analysis_function_describe_offset_handler(), rz_analysis_function_get_var_fields(), rz_analysis_function_info_handler(), rz_analysis_function_list_calls_handler(), rz_analysis_function_list_handler(), rz_analysis_function_list_in_handler(), rz_analysis_function_vars_dis_refs_handler(), rz_analysis_function_vars_handler(), rz_analysis_function_vars_stackframe_handler(), rz_analysis_get_blocks_in(), rz_analysis_get_blocks_intersect(), rz_analysis_get_fcn_in(), rz_analysis_get_functions_in(), rz_analysis_op_list_new(), rz_analysis_reflines_get(), rz_analysis_reflines_middle(), rz_analysis_syscall_print_handler(), rz_analysis_types_from_fcn(), rz_analysis_var_all_list(), rz_analysis_var_count(), rz_analysis_xrefs_copy_handler(), rz_analysis_xrefs_del_handler(), rz_analysis_xrefs_from_list_handler(), rz_analysis_xrefs_get_from(), rz_analysis_xrefs_get_to(), rz_analysis_xrefs_list(), rz_analysis_xrefs_list_handler(), rz_analysis_xrefs_to_graph_cmd_handler(), rz_analysis_xrefs_to_list_handler(), rz_analyze_all_consecutive_functions_in_section_handler(), rz_analyze_all_data_references_to_code_handler(), rz_bin_dex_entrypoints(), rz_bin_filter_sections(), rz_bin_filter_symbols(), rz_bin_java_class_as_libraries(), rz_bin_java_class_as_source_code(), rz_bin_java_class_const_pool_as_symbols(), rz_bin_java_class_entrypoints(), rz_bin_java_class_fields_as_binfields(), rz_bin_java_class_fields_as_symbols(), rz_bin_java_class_methods_as_symbols(), rz_bin_java_class_strings(), rz_bin_object_sections_mapping_list(), rz_bin_omf_send_sections(), rz_bin_string_database_new(), rz_bp_traptrace_new(), rz_cmd_debug_display_bt_ascii_handler(), rz_cmd_debug_display_bt_handler(), rz_cmd_debug_display_bt_local_vars_handler(), rz_cmd_debug_display_bt_oneline_handler(), rz_cmd_debug_dmS_handler(), rz_cmd_debug_process_profile_handler(), rz_cmd_help(), rz_cmd_info_section_bars_handler(), rz_cons_hud(), rz_core_analysis_all(), rz_core_analysis_all_vars_display(), rz_core_analysis_esil(), rz_core_analysis_esil_default(), rz_core_analysis_everything(), rz_core_analysis_function_signature(), rz_core_analysis_refs(), rz_core_analysis_value_pointers(), rz_core_asm_hit_list_new(), rz_core_bin_strings_print(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_config_in_space(), rz_core_debug_backtraces(), rz_core_debug_process_close(), rz_core_debug_ri(), rz_core_get_boundaries_prot(), rz_core_get_func_args(), rz_core_print_func_args(), rz_core_rtr_gdb_cb(), rz_core_search_preludes(), rz_core_theme_list(), rz_core_types_calling_conventions_print(), rz_core_visual_analysis_classes(), rz_core_visual_classes(), rz_core_visual_config_hud(), rz_core_visual_hudclasses(), rz_core_visual_hudstuff(), rz_debug_bochs_map_get(), rz_debug_bp_add(), rz_debug_desc_list(), rz_debug_gdb_modules_get(), rz_debug_gdb_pids(), rz_debug_gdb_threads(), rz_debug_map_list_new(), rz_debug_native_frames(), rz_debug_native_map_get(), rz_debug_pid_list(), rz_debug_qnx_pids(), rz_debug_thread_list(), rz_eval_spaces_handler(), rz_flag_exist_at(), rz_flag_get_by_spaces(), rz_flag_get_i(), rz_flag_get_liststr(), rz_flag_tag_list_handler(), rz_flag_tags_get(), rz_flag_zone_barlist(), rz_id_storage_list(), rz_list_add_sorted(), rz_list_append(), rz_list_clone(), rz_list_contains(), rz_list_del_n(), rz_list_delete(), rz_list_delete_data(), rz_list_find(), rz_list_find_ptr(), rz_list_first(), rz_list_free(), rz_list_get_bottom(), rz_list_get_n(), rz_list_get_next(), rz_list_get_top(), rz_list_init(), rz_list_insert(), rz_list_insertion_sort(), rz_list_iter_get_data(), rz_list_iter_get_next(), rz_list_iter_get_next_data(), rz_list_iterator(), rz_list_last(), rz_list_length(), rz_list_merge_sort(), rz_list_new(), rz_list_pop(), rz_list_pop_head(), rz_list_prepend(), rz_list_purge(), rz_list_push(), rz_list_reverse(), rz_list_set_n(), rz_list_sort(), rz_list_split(), rz_list_split_iter(), rz_list_to_str(), rz_list_uniq(), rz_main_rz_bin(), rz_main_rz_gg(), rz_num_str_split_list(), rz_open_binary_list_ascii_handler(), rz_open_maps_list_ascii_handler(), rz_pkcs7_parse_signeddata(), rz_pkcs7_parse_signerinfo(), rz_reg_get_at(), rz_reg_next_diff(), rz_regex_get_match_list(), rz_regs_show_valgroup(), rz_regs_valgroup_handler(), rz_scan_strings(), rz_scan_strings_raw(), rz_seek_history_list_handler(), rz_skiplist_delete(), rz_skiplist_delete_node(), rz_skiplist_empty(), rz_skiplist_find(), rz_skiplist_find_geq(), rz_skiplist_find_leq(), rz_skiplist_free(), rz_skiplist_get_first(), rz_skiplist_get_geq(), rz_skiplist_get_leq(), rz_skiplist_get_n(), rz_skiplist_insert(), rz_skiplist_new(), rz_skiplist_node_free(), rz_skiplist_purge(), rz_skiplist_to_list(), rz_str_cmp_list(), rz_str_trim_lines(), rz_str_widget_list(), rz_sys_dir(), rz_syscall_list(), rz_syscmd_join(), rz_syscmd_sort(), rz_syscmd_uniq(), rz_table_filter_columns(), rz_table_query(), rz_table_visual_list(), rz_type_db_get_by_offset(), rz_type_path_by_offset(), rz_utf_block_list(), rz_w32_dbg_modules(), rz_x509_parse_tbscertificate(), rzfind_open_file(), sdb_fmt_array(), sdb_fmt_array_num(), sdb_foreach_list(), sdb_foreach_list_cb(), sdb_foreach_list_filter_cb(), sdb_foreach_list_filter_user(), sdb_foreach_match(), sdb_ns_free_all(), sdb_ns_sync(), sdb_querys(), search_string_thread_runner(), set_b(), show_analysis_classes(), show_class(), showmem(), showmem_json(), showregs(), showregs_json(), sortxrefs(), step_until_flag(), str_callback(), strings_print(), structured_member_walker(), symbols(), syscalls_dump(), disasm_mc::test_file(), test_mc::test_file(), regress::test_regression(), thumb_assemble(), try_free_empty_list(), ts_query_cursor__prepare_to_capture(), type_paths_collect_by_address_cb(), type_paths_collect_by_offset_cb(), ut64join(), var_add_structure_fields_to_list(), var_generate_list(), var_variables_show(), variable_rename(), variable_set_type(), w32_pid_list(), w32_thread_list(), windbg_pids(), windbg_threads(), xnu_dbg_maps(), xnu_dbg_modules(), xnu_thread_list(), xref_list_print_as_cmd(), xref_list_print_to_json(), xrefs_list_print(), and zone_load_cb().
Definition at line 89 of file rz-gg.c.
References close, dup2, eprintf, f, fchmod, fd, ftruncate, O_CREAT, O_RDWR, r, and x.
Referenced by rz_main_rz_gg().
Definition at line 116 of file rz-gg.c.
References append, arch, rz_getopt_t::arg, argv, b, rz_egg_t::bin, bits(), bytes, c, close, create(), eprintf, fail, fd, free(), get_offset(), i, rz_getopt_t::ind, ISEXEC, len, list(), malloc(), n, NULL, off, ofile, openfile(), p, printf(), r, rz_buf_data(), rz_buf_new_with_bytes(), rz_buf_seek(), RZ_BUF_SET, rz_debruijn_offset(), rz_egg_assemble(), rz_egg_compile(), rz_egg_encode(), rz_egg_finalize(), rz_egg_free(), rz_egg_get_assembly(), rz_egg_get_bin(), rz_egg_lang_include_path(), rz_egg_load(), rz_egg_load_file(), rz_egg_new(), rz_egg_option_set(), RZ_EGG_OS_NAME, rz_egg_padding(), rz_egg_patch(), rz_egg_patch_num(), rz_egg_pattern(), rz_egg_raw(), rz_egg_run(), rz_egg_run_rop(), rz_egg_setup(), rz_egg_shellcode(), rz_file_slurp(), rz_getopt_init(), rz_getopt_next(), rz_hex_str2bin(), rz_lang_byte_array(), RZ_LANG_BYTE_ARRAY_C_CPP_BYTES, RZ_LANG_BYTE_ARRAY_JSON, RZ_LANG_BYTE_ARRAY_PYTHON, rz_main_version_print(), rz_num_math(), rz_str_append(), RZ_STR_ISEMPTY, RZ_SYS_ARCH, RZ_SYS_BITS, RZ_SYS_BITS_64, cmd_descs_generate::str, strdup(), autogen_x86imm::tmp, usage(), ut64(), and write.
Referenced by MAIN_NAME(), and rz_main_rizin().