mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Use Module.getExportByName() where appropriate
This commit is contained in:
@@ -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