prometheus-lua / Prometheus

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

[BUG] Unexpected char "\134"! #152

Open GoxaShow opened 11 months ago

GoxaShow commented 11 months ago

Describe the bug I decided to cover my large project (221Kb) with preset strong (does not depend on preset), this error comes out:

C:\prometheus-windows>prometheus.exe . /123.lua --Lua51 --nocolors --o "123.luac" --preset Strong PROMETHEUS: Applying Obfuscation Pipeline to ./123.lua ... PROMETHEUS: Parsing ... PROMETHEUS: Lexing Error at Position 2:9, Unexpected char "\134"! C:\prometheus-windows>pause

At first I thought it was the array values, because one of the arrays had this char in it. Removing it did not change anything.

To Reproduce Steps to reproduce the behavior: start bat with: prometheus.exe ./123.lua --Lua51 --nocolors --o "123.luac" --preset Strong

Additional context script written for MoonLoader SAMP, Lua 5.1, luajit 2.1

levno-710 commented 11 months ago

Would it be possible, to provide the code in lines 1-3?

GoxaShow commented 11 months ago

Would it be possible, to provide the code in lines 1-3?

image