Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › Garry's Mod Hacks & Cheats › Garry's Mod Coding & Resources › Lua Obfuscator

Lua Obfuscator

Posts 1–13 of 13 · Page 1 of 1
FA
Fatulatti
Lua Obfuscator
Okay, so, I've been working on this for probably like 2 hours as a "fun" project.
I'll keep on adding more "mechanisms" and obfuscation strategies over the time.
If anyone got suggestions, feel free to hit me up.

Make sure not to use " but ' instead for now.


Obfuscator: https://obf.finn.gg/
#1 · 7y ago
SU
suchisgood
Quote Originally Posted by Fatulatti View Post
Okay, so, I've been working on this for probably like 2 hours as a "fun" project.
I'll keep on adding more "mechanisms" and obfuscation strategies over the time.
If anyone got suggestions, feel free to hit me up.

Make sure not to use " but ' instead for now.


Obfuscator: https://obf.finn.gg/
Nice man testing it out to see if it works! doesn't work it spams text and everything like infinite times and errors!

Can i see the source code i'm a php developer aswell i know the basics!
<?php

echo "hello";

?>
When decoded looks like spam aswell means slow coding!
#2 · edited 7y ago · 7y ago
FA
Fatulatti
Quote Originally Posted by suchisgood View Post
Nice man testing it out to see if it works! doesn't work it spams text and everything like infinite times and errors!

Can i see the source code i'm a php developer aswell i know the basics!


When decoded looks like spam aswell means slow coding!
Yeah, I was updating. Works completely fine now!
I'm using Laravel for all my sites btw.
#3 · 7y ago
SU
suchisgood
Quote Originally Posted by Fatulatti View Post
Yeah, I was updating. Works completely fine now!
I'm using Laravel for all my sites btw.
oh nice just looked it up seems like clean coding! much eaiser to do!

There are errors!
#4 · edited 7y ago · 7y ago
DI
Disterso
How to deobfuscate:
Put "RunString = print;" at top of script and run in lua executor like repl.it
#5 · 7y ago
FA
Fatulatti
Quote Originally Posted by Disterso View Post
How to deobfuscate:
Put "RunString = print;" at top of script and run in lua executor like repl.it
Fixed that. Not possible anymore.
#6 · 7y ago
Cyaegha
Cyaegha
Things wrong with this:
1. Making a fuck ton of globals.
2. Using stupidly long var names.
3. Using readable characters instead of zero width characters.
4. All you do to obfuscate the actual code is reverse it and convert it to decimal.
5. All you need to do is 'CompileString = function(c, n, e) return function() print(c) end end' to get the actual code.
6. A more complex way of deobfuscation would be to just convert all the decimal to characters and then you could just read the code yourself.
7. 'Lua Obfuscator by Finn'

Overall this obfuscator is pretty lame. If anybody that knows a fair bit of Lua sees one of these obfuscated scripts they'll know how to deobfuscate it. You should take a look at proper obfuscation.
#7 · edited 7y ago · 7y ago
FA
Fatulatti
Quote Originally Posted by Cyaegha View Post
Things wrong with this:
1. Making a fuck ton of globals.
2. Using stupidly long var names.
3. Using readable characters instead of zero width characters.
4. All you do to obfuscate the actual code is reverse it and convert it to decimal.
5. All you need to do is 'CompileString = function(c, n, e) return function() print(c) end end' to get the actual code.
6. A more complex way of deobfuscation would be to just convert all the decimal to characters and then you could just read the code yourself.
7. 'Lua Obfuscator by Finn'

Overall this obfuscator is pretty lame. If anybody that knows a fair bit of Lua sees one of these obfuscated scripts they'll know how to deobfuscate it. You should take a look at proper obfuscation.
The "Lua Obfuscator by Finn" thingy was never meant to be left in, actually I left it for debugging purposes.
Other than that, you are correct. Thank you for not insulting immediantly, but rather giving useful feedback!
Sadly there's no good ways to obfuscate Lua I'm aware of, but I am trying another technique later today.


//Edit:
1. Made them local.
2. They're used to you're having a hard time to deobfuscate it via hand.
3. Correct, will fix.
4. Added some more stuff.
5. Fixed.
6. That's why there's the long var names.
7. Removed, as I said, wasn't meant to be left.
#8 · edited 7y ago · 7y ago
Cyaegha
Cyaegha
Most of the problems I mentioned are still there? The only thing I've noticed that changed is using underscores instead of capital letters for the variable names.

Literally all you have to do is convert the decimal and voila, you've deobfuscated it. Your junk code isn't even junk in the way it's suppose to be, it's just bad and serves no purpose other than to increase the file size by a massive amount. You don't even remove excess whitespace in the code to make it slightly less readable without putting it through a beautifier/formatter. You're still making all of your junk variables global and literally the only obfuscation you've done to the original code is reverse it.

And what do you mean there's no good way to obfuscate Lua? Did you not look at the pastebin I posted? Most people get confused enough with !CAC's vehicle.lua and that's magnitudes more obfuscated than vehicle.lua. To make a proper obfuscator you just need to parse the code and generate an AST then rebuild it with the obfuscated changes. There are plenty of opensource Lua parsers you can paste from.

This is what I meant by converting decimal. All that's left is to reverse what's left.
#9 · 7y ago
ZE
zerothe
Quote Originally Posted by Cyaegha View Post
Things wrong with this:
1. Making a fuck ton of globals.
2. Using stupidly long var names.
3. Using readable characters instead of zero width characters.
4. All you do to obfuscate the actual code is reverse it and convert it to decimal.
5. All you need to do is 'CompileString = function(c, n, e) return function() print(c) end end' to get the actual code.
6. A more complex way of deobfuscation would be to just convert all the decimal to characters and then you could just read the code yourself.
7. 'Lua Obfuscator by Finn'

Overall this obfuscator is pretty lame. If anybody that knows a fair bit of Lua sees one of these obfuscated scripts they'll know how to deobfuscate it. You should take a look at proper obfuscation.
this is aids, but not hard. took around 2 hours.

https://csgofoodreviews.com/bp/moat_ac.lua
#10 · 7y ago
TH
theawesomerb
is there a way to un-obfuscate a code ?!
#11 · 7y ago
FA
Fatulatti
Quote Originally Posted by Cyaegha View Post
Most of the problems I mentioned are still there? The only thing I've noticed that changed is using underscores instead of capital letters for the variable names.

Literally all you have to do is convert the decimal and voila, you've deobfuscated it. Your junk code isn't even junk in the way it's suppose to be, it's just bad and serves no purpose other than to increase the file size by a massive amount. You don't even remove excess whitespace in the code to make it slightly less readable without putting it through a beautifier/formatter. You're still making all of your junk variables global and literally the only obfuscation you've done to the original code is reverse it.

And what do you mean there's no good way to obfuscate Lua? Did you not look at the pastebin I posted? Most people get confused enough with !CAC's vehicle.lua and that's magnitudes more obfuscated than vehicle.lua. To make a proper obfuscator you just need to parse the code and generate an AST then rebuild it with the obfuscated changes. There are plenty of opensource Lua parsers you can paste from.

This is what I meant by converting decimal. All that's left is to reverse what's left.
The Junk variables aren't global.
Other than that, you're correct. I'll try improving it over time.
Keep in mind the obfuscator is just a quick online solution.
#12 · 7y ago
SU
suchisgood
Quote Originally Posted by Fatulatti View Post
The Junk variables aren't global.
Other than that, you're correct. I'll try improving it over time.
Keep in mind the obfuscator is just a quick online solution.
explain why it spams alot of stuff when i only want mine to be obfuscated can u put a tick box? to have spam or not
#13 · 7y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • How do i de obfuscate a lua codeBy ppop222 in Garry's Mod Hacks & Cheats
    1Last post 7y ago
  • How do i de obfuscate a lua codeBy ppop222 in Garry's Mod Discussions & Help
    12Last post 7y ago
  • Lua De ObfuscateBy jefferywinner in Garry's Mod Discussions & Help
    9Last post 10y ago
  • [Article]Obfuscation[Tutorial]By Lolland in Visual Basic Programming
    26Last post 16y ago
  • America's Army No Recoil/Reload LUA code.By MagikBullet in General Game Hacking
    7Last post 19y ago

Tags for this Thread

None