frida

Frida python redirect outpout to file

Frida python redirect outpout to file Question: I’m using frida-python to hook android function and I’m trying to redirect the output to a file. I’ve tried to redirect stdout to a file : sys.stdout = open(os.path.join(self.dump_path,’apk_hook.txt’), ‘w’) before calling script = self.session.create_script(open(“java_hook.js”).read()) script.load() But this redirect everything and not just the result of frida-python. I’ve …

Total answers: 2