frida-compile
frida-compile copied to clipboard
Python bindings does not load the script compiled
When compiling a full Frida JS module (4 scripts, almost each one needs to import an other one) with frida-compile, the outputted file can be loaded by executing: frida
But when trying to load it using frida in python by calling create_script() i get an error
frida.InvalidArgumentError: script(line 1): SyntaxError: unexpected character
How can i load the outputted script from frida-compile also in python ?
as a workaround I set up npx webpack, this can be used by the python API
try something like this to load you script in python
js = open(path,'r',encoding="utf8",newline='\n').read()