How do Script.load and Script.evaluate work with compiled scripts #2510
Replies: 1 comment
-
I've figured out a solution myself but this process is still a horrible experience. ESBuild with a plugin to use frida shims -> custom plugin to remove references to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project. It works fine using frida-compile v10.2.5. After this it moved to ESM modules.
A library I use for this project has also moved to ESM modules forcing me to use newer versions of frida-compile which don't work correctly.
Frida-compile gives some sort of packaged script which can't be eval'd yet runs properly in the command line. When given to either frida-gadget or Script.load they aren't executed.
You can test this with this snippet:
When pasted into the console once frida is running it should print "Yes!" but you'll see it prints nothing.
Now save it as a script file and give it to frida with the
-l
flag. It prints out "Yes!" exactly how you'd expectWhat gives? I desperately need to be able to do this. If even frida-gadget can't load these compiled scripts then what's the point of having frida-compile?
Beta Was this translation helpful? Give feedback.
All reactions