Skip to content

Commit

Permalink
Fix Unicorn reference: uc by mu
Browse files Browse the repository at this point in the history
  • Loading branch information
enovella committed Nov 6, 2022
1 parent 10da9bb commit dbced03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit dbced03

Please sign in to comment.