79606107

Date: 2025-05-04 21:58:17
Score: 0.5
Natty:
Report link

To send a byte array from JavaScript to Python in Frida:

First, convert the byte array into a base64 string: const byteArrayBase64 = Java.array('byte', byteArray).toString();

second. send the base64 string using the send() function: send({ type: "bitmap", data: byteArrayBase64 });

On the Python side, you can decode the base64 string back into a byte array using base64.b64decode() and save it.

This approach ensures that you can successfully transfer binary data between JavaScript and Python while maintaining compatibility across both environments.

good luck!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mehdi sahraei