evalFromCodePoint
This tag converts every character into it's code point and then wraps it in an eval.
Created by: hackvertor
Installed 1 times
Category: XSS
Created on: Tuesday, September 24, 2024 at 11:24:20 AM
Updated on: Tuesday, September 24, 2024 at 11:24:20 AM
Tag arguments
[]
Code
class evalFromCodePoint {
encode(input) {
return "eval(String.fromCodePoint(" + input.split('').map(chr => chr.codePointAt()).join(',')+"))"
}
}