prometheus-lua / Prometheus

Lua Obfuscator written in pure Lua
https://levno-710.gitbook.io/prometheus/
GNU Affero General Public License v3.0
205 stars 61 forks source link

[BUG] Certain strings can block obfuscation due to lexing errors #77

Closed wrefgtzweve closed 1 year ago

wrefgtzweve commented 1 year ago

Describe the bug Certain strings cause lexing errors preventing obfuscation.

To Reproduce

Try to obfuscate:

local test = [=[
unescape(encodeURI(_0x4642b)) + '\u0d80', _0x51c383 = _0x480094[_0x1f6b0d(0x29d)];
]=]

PROMETHEUS: Lexing Error at Position 2:36, Unexpected char "0"! Expected one of "{"