bongtrop / hbctool

Hermes Bytecode Reverse Engineering Tool (Assemble/Disassemble Hermes Bytecode)
MIT License
461 stars 81 forks source link

How to decode UTF16 in strings? #33

Closed d1ret closed 1 year ago

d1ret commented 1 year ago

How to decode and change utf16 values in strings.json?

example: { "id": 27774, "isUTF16": true, "value": "3906270645062000480627062d062f06" }

belext commented 8 months ago

Here's how to do it: https://gchq.github.io/CyberChef/#recipe=From_Charcode('Space',16)&oenc=1200 And use "To Charcode" recipe to convert it back. Make sure to select UTF-16LE encoding for the resulting text.