-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Emulator' object has no attribute 'uc' #75
Comments
$ git diff
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)) |
it works. TL;DR: replace all
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i try python3 example.py
here is the result.
python version :
Python 3.9.0 (default, Nov 21 2020, 14:01:55)
The text was updated successfully, but these errors were encountered: