Skip to content
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

Failed to compile waired icons #91

Open
muniategui opened this issue Apr 25, 2024 · 3 comments
Open

Failed to compile waired icons #91

muniategui opened this issue Apr 25, 2024 · 3 comments

Comments

@muniategui
Copy link

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

@deathmemory
Copy link

+1

@muniategui
Copy link
Author

muniategui commented Aug 17, 2024

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

@muniategui
Copy link
Author

Source for solution i found: oleavr/frida-agent-example#24 (comment)
Original issue where the soultion was referenced: #87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants