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

Prometheus will not properly use the Strong preset #16

Closed Apachedrag427 closed 2 years ago

Apachedrag427 commented 2 years ago

When I try to use the --preset Strong, it returns me with this output and provides no file: image I'm not sure what may be causing this to happen, it worked fine before and the Medium and Weak presets work fine

levno-710 commented 2 years ago

Could you please provide the lua file you tried to obfuscate. This seems to be a bug in the custom bytecode compiler. The reason why Medium and Weak work, is that they don't compile your program to custom bytecode, but only apply source code obfuscation.

Are you using the windows build or the lua sources? You could try to use the lua sources to run prometheus.

Also did you download a newer version or did this happen without any obvious reason?

Thanks

Apachedrag427 commented 2 years ago

Could you please provide the lua file you tried to obfuscate.

lua.txt (I had to change it to .txt to upload)

Are you using the windows build or the lua sources?

I'm using the windows build, prometheus.exe

Also did you download a newer version or did this happen without any obvious reason?

I didn't upgrade version, I just tried it with a different lua file and it worked fine

Also, sidenote, this uses apis and the environment of a computer mod in minecraft

levno-710 commented 2 years ago

Fixed

This bug is now fixed. I suggest you download the newest release of prometheus in order to obfuscate your file.

There was an issue, where break statements could only be compiled within while loops. Because your file contains break multiple break statements inside of for loops, prometheus failed to obfuscate it and crashed.

PS: I suggest you also use the --nocolors option, because your terminal seems to not support colors (seen by the weird escape characters).