I'm trying to use jint to decode jsfuck, and am basing myself off this project: https://github.com/enkhee-Osiris/Decoder-JSFuck (it's the only one I've found that can decode the jsfuck correctly). The following c# isn't working correctly:
Jint.Engine engine = new Jint.Engine();
engine.SetValue("code", jsfuck_string);
string result = engine.Execute(@"function decode() {
return (/\n(.+)/.exec(eval(code.value.replace(/\s+/, "").slice(0, -2)))[1]);
}").GetValue("decode").ToString();
I'm getting the following exception: Line 2: Unexpected token ILLEGAL