Skip to content

Instantly share code, notes, and snippets.

@gabyfle
Created April 9, 2021 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabyfle/b1b111c3c6967ade3fec0d9c1d058332 to your computer and use it in GitHub Desktop.
Save gabyfle/b1b111c3c6967ade3fec0d9c1d058332 to your computer and use it in GitHub Desktop.
DRM
local f = 'mysterious_addon.lua'
local df = 'deobfuscated.lua'
---
--- This is just to get rid
--- of the ennoying fucking
--- invisible caracters when
--- using UTF-8 encoding shit
---
--- Enjoy.
---
local charMap = {}
charMap[63] = 'X'
charMap[67] = 'Y'
charMap[86] = 'Z'
rd = io.open(f, 'r')
wr = io.open(df, 'w')
local char = rd:read(1)
while char do
local mapped = charMap[string.byte(char)]
print(string.byte(char))
if not mapped then mapped = char end -- isn't one of these
wr:write(mapped)
char = rd:read(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment