You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On telegram:
Me: frida compile is producing boxes and scissors symbols which lead to an error when loaidng script from .py is there a way to compile on the fly the TS in the .py? Or a way to fix this problem with the compiler?
Answer by ole (frida devel): Make sure you load the file without newlines being translated. You can use the frida.Compiler API to do the compilation on the fly, but this will add a startup delay to your application
Solution i did: Solved by adding utf8 encoding on open and newline \n (found on github issues) Thanks❤️
The code itself:
with open("./script.js","r",encoding='utf8', newline='\n') as f:
script = session.create_script(f.read())
The needed part is the encoding='utf8', newline'\n' for windows
This issue was open long ago.
When following the steeps with my project or the example one in frida-agent example icons/info like:
✄
/folder/filename.ts
📦
appears and then python script is unable to load the produced .js file
The text was updated successfully, but these errors were encountered: