Rizin
unix-like reverse engineering framework and cli tools
|
Classes | |
class | Arm |
class | Arm64 |
class | Arm64_const |
class | Arm_const |
class | Evm_const |
class | M680x |
class | M680x_const |
class | M68k_const |
class | Mips |
class | Mips_const |
class | Ppc |
class | Ppc_const |
class | Sparc |
class | Sparc_const |
class | Systemz |
class | Sysz_const |
class | TMS320C64x_const |
class | X86 |
class | X86_const |
class | Xcore |
class | Xcore_const |
class | _cs_arch |
class | _cs_detail |
class | _cs_insn |
class | _cs_opt_skipdata |
class | _cs_opt_mnem |
class | CsError |
class | _dummy_cs |
class | CsInsn |
class | Cs |
Functions | |
def | _load_lib (path) |
def | copy_ctypes (src) |
def | copy_ctypes_list (src) |
def | _setup_prototype (lib, fname, restype, *argtypes) |
def | cs_version () |
def | version_bind () |
def | cs_support (query) |
def | cs_disasm_quick (arch, mode, code, offset, count=0) |
def | cs_disasm_lite (arch, mode, code, offset, count=0) |
def | _ascii_name_or_default (name, default) |
def | debug () |
|
private |
Definition at line 525 of file __init__.py.
Referenced by capstone.CsInsn.group_name(), capstone.Cs.group_name(), capstone.CsInsn.insn_name(), capstone.Cs.insn_name(), capstone.CsInsn.reg_name(), and capstone.Cs.reg_name().
|
private |
Definition at line 282 of file __init__.py.
|
private |
Definition at line 387 of file __init__.py.
def capstone.copy_ctypes | ( | src | ) |
Returns a new ctypes object which is a bitwise copy of an existing one
Definition at line 320 of file __init__.py.
References type.
Referenced by copy_ctypes_list().
def capstone.copy_ctypes_list | ( | src | ) |
Definition at line 326 of file __init__.py.
References copy_ctypes().
Referenced by capstone.m68k.M68KOpSize.get(), capstone.arm.get_arch_info(), capstone.arm64.get_arch_info(), capstone.m680x.get_arch_info(), capstone.m68k.get_arch_info(), capstone.mips.get_arch_info(), capstone.ppc.get_arch_info(), capstone.sparc.get_arch_info(), capstone.systemz.get_arch_info(), capstone.x86.get_arch_info(), and capstone.xcore.get_arch_info().
def capstone.cs_disasm_lite | ( | arch, | |
mode, | |||
code, | |||
offset, | |||
count = 0 |
|||
) |
Definition at line 489 of file __init__.py.
References cs_support(), cs_version(), len, and range.
Referenced by test_lite.test_cs_disasm_quick(), and ppcbranch.test_cs_disasm_quick().
def capstone.cs_disasm_quick | ( | arch, | |
mode, | |||
code, | |||
offset, | |||
count = 0 |
|||
) |
Definition at line 452 of file __init__.py.
References cs_version(), len, and range.
Referenced by test_basic.test_cs_disasm_quick().
def capstone.cs_support | ( | query | ) |
Definition at line 436 of file __init__.py.
Referenced by cs_disasm_lite(), debug(), and capstone.Cs.support().
def capstone.cs_version | ( | ) |
Definition at line 424 of file __init__.py.
Referenced by capstone.Cs.__init__(), cs_disasm_lite(), cs_disasm_quick(), and debug().
def capstone.debug | ( | ) |
Definition at line 1103 of file __init__.py.
References cs_support(), and cs_version().
def capstone.version_bind | ( | ) |
Definition at line 432 of file __init__.py.
|
private |
Definition at line 8 of file __init__.py.
|
private |
Definition at line 271 of file __init__.py.
|
private |
Definition at line 139 of file __init__.py.
|
private |
Definition at line 293 of file __init__.py.
|
private |
Definition at line 280 of file __init__.py.
|
private |
Definition at line 274 of file __init__.py.
|
private |
Definition at line 303 of file __init__.py.
|
private |
Definition at line 4 of file __init__.py.
Definition at line 256 of file __init__.py.
int capstone.CS_AC_INVALID = 0 |
Definition at line 223 of file __init__.py.
tuple capstone.CS_AC_READ = (1 << 0) |
Definition at line 224 of file __init__.py.
tuple capstone.CS_AC_WRITE = (1 << 1) |
Definition at line 225 of file __init__.py.
int capstone.CS_API_MAJOR = 4 |
Definition at line 131 of file __init__.py.
int capstone.CS_API_MINOR = 0 |
Definition at line 132 of file __init__.py.
Definition at line 257 of file __init__.py.
int capstone.CS_ARCH_ALL = 0xFFFF |
Definition at line 155 of file __init__.py.
int capstone.CS_ARCH_ARM = 0 |
Definition at line 142 of file __init__.py.
int capstone.CS_ARCH_ARM64 = 1 |
Definition at line 143 of file __init__.py.
int capstone.CS_ARCH_EVM = 11 |
Definition at line 153 of file __init__.py.
int capstone.CS_ARCH_M680X = 10 |
Definition at line 152 of file __init__.py.
int capstone.CS_ARCH_M68K = 8 |
Definition at line 150 of file __init__.py.
int capstone.CS_ARCH_MAX = 12 |
Definition at line 154 of file __init__.py.
int capstone.CS_ARCH_MIPS = 2 |
Definition at line 144 of file __init__.py.
int capstone.CS_ARCH_PPC = 4 |
Definition at line 146 of file __init__.py.
int capstone.CS_ARCH_SPARC = 5 |
Definition at line 147 of file __init__.py.
int capstone.CS_ARCH_SYSZ = 6 |
Definition at line 148 of file __init__.py.
int capstone.CS_ARCH_TMS320C64X = 9 |
Definition at line 151 of file __init__.py.
int capstone.CS_ARCH_X86 = 3 |
Definition at line 145 of file __init__.py.
int capstone.CS_ARCH_XCORE = 7 |
Definition at line 149 of file __init__.py.
Definition at line 258 of file __init__.py.
int capstone.CS_ERR_ARCH = 2 |
Definition at line 237 of file __init__.py.
Referenced by cs_open(), cs_regs_access(), and cs_strerror().
int capstone.CS_ERR_CSH = 4 |
Definition at line 239 of file __init__.py.
Referenced by cs_close(), cs_errno(), cs_option(), and cs_strerror().
int capstone.CS_ERR_DETAIL = 7 |
Definition at line 242 of file __init__.py.
Referenced by cs_insn_group(), cs_op_count(), cs_op_index(), cs_reg_read(), cs_reg_write(), cs_regs_access(), and cs_strerror().
int capstone.CS_ERR_DIET = 10 |
Definition at line 245 of file __init__.py.
Referenced by cs_regs_access(), and cs_strerror().
int capstone.CS_ERR_HANDLE = 3 |
Definition at line 238 of file __init__.py.
Referenced by cs_op_count(), cs_op_index(), and cs_strerror().
int capstone.CS_ERR_MEM = 1 |
Definition at line 236 of file __init__.py.
Referenced by cs_disasm(), cs_malloc(), cs_open(), and cs_strerror().
int capstone.CS_ERR_MEMSETUP = 8 |
Definition at line 243 of file __init__.py.
Referenced by cs_open(), and cs_strerror().
int capstone.CS_ERR_MODE = 5 |
Definition at line 240 of file __init__.py.
Referenced by cs_open(), and cs_strerror().
int capstone.CS_ERR_OK = 0 |
Definition at line 235 of file __init__.py.
Referenced by analop(), analysis_op(), cs_close(), cs_disasm(), cs_disasm_iter(), cs_driver_hello(), cs_op_count(), cs_op_index(), cs_open(), cs_option(), cs_regs_access(), cs_strerror(), disassemble(), and ocaml_cs_disasm().
int capstone.CS_ERR_OPTION = 6 |
Definition at line 241 of file __init__.py.
Referenced by cs_option(), cs_strerror(), and ocaml_option().
int capstone.CS_ERR_SKIPDATA = 11 |
Definition at line 246 of file __init__.py.
Referenced by cs_insn_group(), cs_op_count(), cs_op_index(), cs_reg_read(), cs_reg_write(), cs_regs_access(), and cs_strerror().
int capstone.CS_ERR_VERSION = 9 |
Definition at line 244 of file __init__.py.
Referenced by cs_strerror().
int capstone.CS_ERR_X86_ATT = 12 |
Definition at line 247 of file __init__.py.
Referenced by cs_strerror().
int capstone.CS_ERR_X86_INTEL = 13 |
Definition at line 248 of file __init__.py.
Referenced by cs_strerror().
int capstone.CS_ERR_X86_MASM = 14 |
Definition at line 249 of file __init__.py.
Referenced by cs_strerror().
Definition at line 259 of file __init__.py.
int capstone.CS_GRP_CALL = 2 |
Definition at line 216 of file __init__.py.
int capstone.CS_GRP_INT = 4 |
Definition at line 218 of file __init__.py.
int capstone.CS_GRP_INVALID = 0 |
Definition at line 214 of file __init__.py.
int capstone.CS_GRP_IRET = 5 |
Definition at line 219 of file __init__.py.
int capstone.CS_GRP_JUMP = 1 |
Definition at line 215 of file __init__.py.
int capstone.CS_GRP_PRIVILEGE = 6 |
Definition at line 220 of file __init__.py.
int capstone.CS_GRP_RET = 3 |
Definition at line 217 of file __init__.py.
Definition at line 260 of file __init__.py.
tuple capstone.CS_MODE_16 = (1 << 1) |
Definition at line 160 of file __init__.py.
tuple capstone.CS_MODE_32 = (1 << 2) |
Definition at line 161 of file __init__.py.
tuple capstone.CS_MODE_64 = (1 << 3) |
Definition at line 162 of file __init__.py.
int capstone.CS_MODE_ARM = 0 |
Definition at line 159 of file __init__.py.
tuple capstone.CS_MODE_BIG_ENDIAN = (1 << 31) |
Definition at line 178 of file __init__.py.
int capstone.CS_MODE_LITTLE_ENDIAN = 0 |
Definition at line 158 of file __init__.py.
tuple capstone.CS_MODE_M680X_6301 = (1 << 1) |
Definition at line 181 of file __init__.py.
tuple capstone.CS_MODE_M680X_6309 = (1 << 2) |
Definition at line 182 of file __init__.py.
tuple capstone.CS_MODE_M680X_6800 = (1 << 3) |
Definition at line 183 of file __init__.py.
tuple capstone.CS_MODE_M680X_6801 = (1 << 4) |
Definition at line 184 of file __init__.py.
tuple capstone.CS_MODE_M680X_6805 = (1 << 5) |
Definition at line 185 of file __init__.py.
tuple capstone.CS_MODE_M680X_6808 = (1 << 6) |
Definition at line 186 of file __init__.py.
tuple capstone.CS_MODE_M680X_6809 = (1 << 7) |
Definition at line 187 of file __init__.py.
tuple capstone.CS_MODE_M680X_6811 = (1 << 8) |
Definition at line 188 of file __init__.py.
tuple capstone.CS_MODE_M680X_CPU12 = (1 << 9) |
Definition at line 189 of file __init__.py.
tuple capstone.CS_MODE_M680X_HCS08 = (1 << 10) |
Definition at line 190 of file __init__.py.
tuple capstone.CS_MODE_M68K_000 = (1 << 1) |
Definition at line 172 of file __init__.py.
tuple capstone.CS_MODE_M68K_010 = (1 << 2) |
Definition at line 173 of file __init__.py.
tuple capstone.CS_MODE_M68K_020 = (1 << 3) |
Definition at line 174 of file __init__.py.
tuple capstone.CS_MODE_M68K_030 = (1 << 4) |
Definition at line 175 of file __init__.py.
tuple capstone.CS_MODE_M68K_040 = (1 << 5) |
Definition at line 176 of file __init__.py.
tuple capstone.CS_MODE_M68K_060 = (1 << 6) |
Definition at line 177 of file __init__.py.
tuple capstone.CS_MODE_MCLASS = (1 << 5) |
Definition at line 164 of file __init__.py.
tuple capstone.CS_MODE_MICRO = (1 << 4) |
Definition at line 166 of file __init__.py.
tuple capstone.CS_MODE_MIPS2 = (1 << 7) |
Definition at line 169 of file __init__.py.
tuple capstone.CS_MODE_MIPS3 = (1 << 5) |
Definition at line 167 of file __init__.py.
tuple capstone.CS_MODE_MIPS32 = CS_MODE_32 |
Definition at line 179 of file __init__.py.
tuple capstone.CS_MODE_MIPS32R6 = (1 << 6) |
Definition at line 168 of file __init__.py.
tuple capstone.CS_MODE_MIPS64 = CS_MODE_64 |
Definition at line 180 of file __init__.py.
tuple capstone.CS_MODE_QPX = (1 << 4) |
Definition at line 171 of file __init__.py.
tuple capstone.CS_MODE_THUMB = (1 << 4) |
Definition at line 163 of file __init__.py.
tuple capstone.CS_MODE_V8 = (1 << 6) |
Definition at line 165 of file __init__.py.
tuple capstone.CS_MODE_V9 = (1 << 4) |
Definition at line 170 of file __init__.py.
Definition at line 261 of file __init__.py.
int capstone.CS_OP_FP = 4 |
Definition at line 211 of file __init__.py.
int capstone.CS_OP_IMM = 2 |
Definition at line 209 of file __init__.py.
int capstone.CS_OP_INVALID = 0 |
Definition at line 207 of file __init__.py.
int capstone.CS_OP_MEM = 3 |
Definition at line 210 of file __init__.py.
int capstone.CS_OP_REG = 1 |
Definition at line 208 of file __init__.py.
Definition at line 262 of file __init__.py.
int capstone.CS_OPT_DETAIL = 2 |
Definition at line 194 of file __init__.py.
int capstone.CS_OPT_MEM = 4 |
Definition at line 196 of file __init__.py.
int capstone.CS_OPT_MNEMONIC = 7 |
Definition at line 199 of file __init__.py.
int capstone.CS_OPT_MODE = 3 |
Definition at line 195 of file __init__.py.
int capstone.CS_OPT_OFF = 0 |
Definition at line 203 of file __init__.py.
int capstone.CS_OPT_ON = 3 |
Definition at line 204 of file __init__.py.
int capstone.CS_OPT_SKIPDATA = 5 |
Definition at line 197 of file __init__.py.
int capstone.CS_OPT_SKIPDATA_SETUP = 6 |
Definition at line 198 of file __init__.py.
int capstone.CS_OPT_SYNTAX = 1 |
Definition at line 193 of file __init__.py.
int capstone.CS_OPT_SYNTAX_ATT = 2 |
Definition at line 230 of file __init__.py.
int capstone.CS_OPT_SYNTAX_DEFAULT = 0 |
Definition at line 228 of file __init__.py.
int capstone.CS_OPT_SYNTAX_INTEL = 1 |
Definition at line 229 of file __init__.py.
int capstone.CS_OPT_SYNTAX_MASM = 4 |
Definition at line 232 of file __init__.py.
int capstone.CS_OPT_SYNTAX_NOREGNAME = 3 |
Definition at line 231 of file __init__.py.
int capstone.CS_OPT_UNSIGNED = 8 |
Definition at line 200 of file __init__.py.
capstone.CS_SKIPDATA_CALLBACK = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.c_size_t, ctypes.c_void_p) |
Definition at line 371 of file __init__.py.
Referenced by capstone.Cs.skipdata_setup().
int capstone.CS_SUPPORT_DIET = CS_ARCH_ALL + 1 |
Definition at line 252 of file __init__.py.
int capstone.CS_SUPPORT_X86_REDUCE = CS_ARCH_ALL+2 |
Definition at line 253 of file __init__.py.
int capstone.CS_VERSION_EXTRA = 2 |
Definition at line 137 of file __init__.py.
int capstone.CS_VERSION_MAJOR = CS_API_MAJOR |
Definition at line 135 of file __init__.py.
int capstone.CS_VERSION_MINOR = CS_API_MINOR |
Definition at line 136 of file __init__.py.
capstone.range = xrange |
Definition at line 6 of file __init__.py.
Referenced by analysis_fcn_data_gaps(), test-lz4-speed.benchmark_and_compare(), cmd_print_eq_dict(), create_loc_range(), cs_disasm_lite(), cs_disasm_quick(), capstone.Cs.disasm(), capstone.Cs.disasm_lite(), find_largest_loc_range(), free_loc_table_list(), FUZZ_getRange_from_uint32(), main(), marshal_range(), mpcf_re_range(), parse_dwarf_location(), parse_loc_raw(), test_x86.print_insn_detail(), qtmd_decompress(), rz_core_bin_dwarf_print_loc(), rz_core_cmd_subst_i(), rz_core_visual_cmd(), rz_io_cache_commit(), rz_io_cache_invalidate(), ts_lexer_set_included_ranges(), ts_parser_parse(), ts_range_array_add(), ts_range_array_intersects(), ts_subtree_get_changed_ranges(), ts_tree_edit(), unmarshal_range(), and uv__get_cpu_speed().