Skip to content

Commit 9b15bde

Browse files
committed
examples: Fix the child gating example
1 parent a613d87 commit 9b15bde

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/child_gating.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def _instrument(self, pid):
4444
print("✔ create_script()")
4545
script = session.create_script(
4646
"""\
47-
Interceptor.attach(Module.getExportByName(null, 'open'), {
48-
onEnter: function (args) {
47+
Interceptor.attach(Module.getGlobalExportByName('open'), {
48+
onEnter(args) {
4949
send({
5050
type: 'open',
51-
path: Memory.readUtf8String(args[0])
51+
path: args[0].readUtf8String()
5252
});
5353
}
5454
});

0 commit comments

Comments
 (0)