Post #2784982
2026-04-21 10:01 UTC
String.fromCharCode overflows. I didn't know how this worked many years ago. Now it seems so simple. The maximum value a character can be generated is 0xffff. So if you want to generate A (0x41) you simply add one to the max value plus the character you want to generate.
0x10000 is 0xffff+1. So to generate A you do:
String.fromCharCode(0x10000 + 0x41)//A
All this is explained in:
https://portswigger.net/research/splitting-the-email-atom
Replies (0)
No replies.