Created
May 9, 2020 03:15
-
-
Save Robert-Cunningham/f9f004b035394bed4f141787afc9d1a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var open = new NativeFunction(Module.findExportByName('libc.so', 'open'), 'pointer', ['pointer', 'int']); | |
Interceptor.replace(open, new NativeCallback(function (path, mode) { | |
console.log('opening', Memory.readUtf8String(path)) | |
return open(path, mode) | |
}, 'pointer', ['pointer', 'int'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment