From 8aff31c36e62b2eb64974a2648b64ef4250c2546 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 31 Jan 2026 18:59:41 +0000 Subject: [PATCH] 20:00 --- core/__pycache__/obfuscator.cpython-311.pyc | Bin 32097 -> 32096 bytes core/obfuscator.py | 2 +- verify_syntax.py | 56 -------------------- 3 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 verify_syntax.py diff --git a/core/__pycache__/obfuscator.cpython-311.pyc b/core/__pycache__/obfuscator.cpython-311.pyc index 4e0e9219cb722b3d361da67be5d3e00bcc4b93c4..fa654c083d66716eae498818f7928c9e6a676c0d 100644 GIT binary patch delta 46 zcmaF(i}ArPM&9MTyj%=GVC!9%d3_`AUIQj3jm>8beE3-uG(IR!cC-`UY~rA63jlPA B4$lAp delta 47 zcmaFxi}B$vM&9MTyj%=Gu+6zH^TtNry#~z88tR+R82IqBC~AICoSbMUzS-D8*A@Ve Cv=52^ diff --git a/core/obfuscator.py b/core/obfuscator.py index 8996663..0a9b0f4 100644 --- a/core/obfuscator.py +++ b/core/obfuscator.py @@ -97,7 +97,7 @@ local function {v['DEC']}(data) end; return table.concat(res); end; -local {v['INST']}={v['DEC']}(''{inst_b64}'); +local {v['INST']}={v['DEC']}('{inst_b64}'); local {v['CONSTS']}={v['JSON']}:JSONDecode([=[{json.dumps(consts)}]=]); local {v['EXEC']}=function() local {v['REGS']}={{}}; diff --git a/verify_syntax.py b/verify_syntax.py deleted file mode 100644 index 88b0289..0000000 --- a/verify_syntax.py +++ /dev/null @@ -1,56 +0,0 @@ -from core.obfuscator import obfuscate -import re - -test_cases = [ - """ - local a = 10 - print(a) - """, - """ - game:GetService("Players").LocalPlayer:Kick("Test") - """, - """ - return 123 - """, - """ - x = 5 - x = x + 1 - print(x) - """, - """ - local t = {a = 1} - t.a = 2 - print(t.a) - """ -] - -def check_syntax(lua_code): - # Basic check for balanced quotes and parens in the generated code - # Also check for the specific patterns we fixed - if "''" in lua_code and "(''" not in lua_code: # Check for the fixed inst_b64 part - # Note: ('' is fine for DEC function call if it was meant to be that, but we changed it to (') - pass - - # Check for "task and task.spawn or spawn(" without surrounding parens - # Our fix: (task and task.spawn or spawn)(... - if "task and task.spawn or spawn(" in lua_code: - if "(task and task.spawn or spawn)(" not in lua_code: - return False, "Missing parentheses around SPW" - - # Check for empty string (failed obfuscation) - if not lua_code.strip(): - return False, "Empty output" - - # Check for error comments - if "-- Obfuscation Error" in lua_code: - return False, "Obfuscation Error detected" - - return True, "OK" - -for i, code in enumerate(test_cases): - obfuscated = obfuscate(code) - success, msg = check_syntax(obfuscated) - print(f"Test {i}: {success} - {msg}") - if not success: - print(f"Code: {code}") - print(f"Obfuscated snippet: {obfuscated[:200]}...")