From dbced03f2ce0e58f3b32ce068a94003be9d99060 Mon Sep 17 00:00:00 2001 From: Eduardo Novella Date: Sun, 6 Nov 2022 18:06:02 +0100 Subject: [PATCH] Fix Unicorn reference: uc by mu --- examples/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example.py b/examples/example.py index 0d29fc0..811dbc6 100644 --- a/examples/example.py +++ b/examples/example.py @@ -35,9 +35,9 @@ def hook_code(uc, address, size, user_data): print('# Tracing instruction at 0x%x, instruction size = 0x%x, instruction = %s' % (address, size, instruction_str)) -emulator.uc.hook_add(UC_HOOK_CODE, hook_code) +emulator.mu.hook_add(UC_HOOK_CODE, hook_code) # Runs a method of "libnative-lib.so" that calls an imported function "strlen" from "libc.so". emulator.call_symbol(lib_module, '_Z4testv') -print("String length is: %i" % emulator.uc.reg_read(UC_ARM_REG_R0)) +print("String length is: %i" % emulator.mu.reg_read(UC_ARM_REG_R0))