JIS X 0208 bytes that produce ASCII characters

Chrome logo 2

Sequences of two bytes that when in the ISO-2022-JP charset and preceded by the JIS X 0201 1978 escape sequence, produce any ASCII character after decoding.

Created by: JorianWoltjer

Created on: Sunday, September 22, 2024 at 8:49:34 AM

Updated on: Wednesday, October 2, 2024 at 8:52:19 PM

Vector type: JS

Code used before fuzz:
d = new TextDecoder('ISO-2022-JP')
Template used:
b1 = Math.floor(i / 256);
b2 = i % 256;
c = d.decode(new Uint8Array([0x1b, 0x24, 0x40, b1, b2])) 
if (c.split("").map((c) => c.charCodeAt(0)).some((i) => i < 127)) log(i)
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...

Sample payloads

b1 = Math.floor(i / 256);
b2 = i % 256;
c = d.decode(new Uint8Array([0x1b, 0x24, 0x40, b1, b2])) 
if (c.split("").map((c) => c.charCodeAt(0)).some((i) => i < 127)) alert(i)

Fuzz results

Chrome logo
Chrome 129.0.0.0 desktop Windows NT 10.0

Updated

Sun Sep 22 2024
Found 2 results
DecHexChr
69481b24
DecHexChr
69521b28