-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #110, #24, #101: Use httptoolkit/frida-android-unpinning #111
The head ref may contain hidden characters: "b_ht-unpinning-scri\u00FCt"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty happy with this and it does work if I run it in the development directory, but if I build it and run the example with the built library, I get the following error:
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: Script(line 698): SyntaxError: unsupported keyword: export]
Node.js v18.14.2
I am guessing this relates to the new module syntax you introduced in the tsconfig.json
. I verified my setup works with the current main
branch.
The problem is that Parcel builds the unpinning script instead of treating it as a text file. It adds: export {$ee1b1628d2dcda72$exports as default}; The JS engine Frida uses doesn't understand that, thus the error. |
Parcel does support inlining files without transforming them. However, for that to work, you need to use const unpinningScript = readFileSync(join(__dirname, 'external', 'frida-android-unpinning.js'), 'utf-8'); Using However, if we do use
|
So, we need our own hack. If I rename the file to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, now it works!
No description provided.