JSFuck decoder. Executes (not really) the input in a controlled environment and extracts the generated JavaScript source code.
JSFuck executes the generated payload using one of two mechanisms:
evaleval(code)Array.prototype.at.constructor[]["at"]["constructor"](payload)()
This bypasses simple hooks on eval and global Function.
JSUnFuck intercepts both execution paths:
eval is temporarily replaced to capture the code passed to itArray.prototype.at.constructor is temporarily replaced to intercept indirect function constructor callsInstead of executing the payload, the tool extracts the generated JavaScript source and prints it to the output.
If no execution path is triggered, the input is treated as a pure JSFuck expression and evaluated as a value.
Just show me the code → unfuck.js | test.html
This tool is conditionally safe.
See the full reference list here.