Use Module.getExportByName() where appropriate

This commit is contained in:
Ole André Vadla Ravnås
2019-05-10 21:28:34 +02:00
parent 9412e5b919
commit 7d8612bfa2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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();
},