INNER CODE UNIT · JavaScript
byteArray
hackcatml/frida-flutterproxy · script.js:75
let byteArray = octets.map(octet => parseInt(octet, 10));
return byteArray;
}
// Convert ArrayBuffer to hex string
function convertArrayBufferToHex(buffer) {
let hexArray = [];
let uint8Array = new Uint8Array(buffer);
for (let byte of uint8Array) {
hexArray.push(byte.toString(16).padStart(2, '0'));
}
return hexArray.join(' ');
}
// Byte flip
function byteFlip(number) {
// Extract the high and low bytes