From 7d8612bfa2a50e1466f49602c8d8fe66c2edd9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Fri, 10 May 2019 21:28:34 +0200 Subject: [PATCH] Use Module.getExportByName() where appropriate --- examples/child_gating.py | 2 +- examples/cpushark/Capture.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); },