mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Use Module.getExportByName() where appropriate
This commit is contained in:
1 parent
9412e5b919
commit
7d8612bfa2
2 files changed
+2
-2
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user