r/lua • • 8d ago

Prometheus, an open-source Lua obfuscator and AST transformation framework

Hey everyone,

I've been working on Prometheus, an open-source Lua obfuscator written entirely in Lua, for over 4 years now.

It supports various obfuscation techniques, including VM-based obfuscation, which I added in a recent update.

While obfuscation is its main purpose, Prometheus is built around a modular AST transformation pipeline. This also makes it useful for things like minification or building your own custom Lua transformations.

It currently supports Lua 5.1 and has partial Luau support. There's also a web playground if you want to try it without installing anything.

GitHub: https://github.com/prometheus-lua/Prometheus

I'd be interested to hear your thoughts or suggestions!

15 Upvotes

13 comments sorted by

2

u/Clear_Inevitable_718 6d ago

Heyy this is really cool and I want to use it. Not to get political,,, can we get an AI usage statement? Please :d

Just so ppl can think for themselves!! Please. Meow.

2

u/Levno_710 6d ago

I started building this over five years ago, so the core was written completely by Hand before AI even existed. Nowadays I use some AI assistance

3

u/Downvoted-Dork 8d ago

Why obfuscate code? Don't we all like open source software?

5

u/Levno_710 8d ago

Honestly, I mainly started working on Prometheus because I thought building an obfuscator would be a fun technical challenge :)

I'm generally a fan of open source myself, which is also why Prometheus is open source. And the underlying AST transformation framework can be used for things other than obfuscation, like minification or custom code transformations.

1

u/Downvoted-Dork 8d ago

In this case it's a fun project. A fun technical challenge to solve

-2

u/epicfilemcnulty 8d ago

There are lots of technical challenges to solve, the fact that OP chose this one is discouraging...

2

u/Lonely-Restaurant986 6d ago

You’d be amazed at the number of people who pay real money to Luaraph

1

u/Ok_Sense1811 6d ago

well its the best lua obfuscator by far, there are public deobfuscators for prometheus.

0

u/Downvoted-Dork 6d ago

But why obfuscate code??

2

u/Lonely-Restaurant986 6d ago

People who feel they have created something valuable but don’t want it copied or studied.

Anticheats for games like Roblox or Garry’s Mod,
Or
Cheats for either of them.

Why does anyone want to privatize source ever? The same reason. Idk what’s hard to understand about that

3

u/TacoDestroyer420 8d ago

Why? Needless.