diff --git a/examples/child_gating.py b/examples/child_gating.py index e5d6d4a..d2ad5b7 100644 --- a/examples/child_gating.py +++ b/examples/child_gating.py @@ -45,7 +45,7 @@ class Application(object): session.enable_child_gating() print("✔ create_script()") script = session.create_script("""\ -Interceptor.attach(Module.findExportByName(null, 'open'), { +Interceptor.attach(Module.getExportByName(null, 'open'), { onEnter: function (args) { send({ type: 'open', diff --git a/examples/cpushark/Capture.py b/examples/cpushark/Capture.py index c13b3d2..9db9913 100644 --- a/examples/cpushark/Capture.py +++ b/examples/cpushark/Capture.py @@ -423,7 +423,7 @@ var sendModules = function sendModules(callback) { var stalkedThreadId = null; var interceptReadFunction = function interceptReadFunction(functionName) { - Interceptor.attach(Module.findExportByName('libSystem.B.dylib', functionName), { + Interceptor.attach(Module.getExportByName('libSystem.B.dylib', functionName), { onEnter: function(args) { this.fd = args[0].toInt32(); },