Advertisement
Nova355killer

Multi byte obfucate lua

May 28th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. --Your code here:
  2. local code = [[
  3. print("hello world")
  4. ]]
  5.  
  6. --How many times obfuscate the code:
  7. --The higher number you put here the longer will it take
  8. local HowManyTimesObfuscate = 5
  9.  
  10. function bytef(code)
  11. local r = "loadstring("..[["]]
  12. for i in code:gmatch(".") do
  13. r=r..[[\]]..i:byte()
  14. end
  15. r=r..[[")()]]
  16. return r
  17. end
  18.  
  19. local a = bytef(code)
  20. for i = 1, HowManyTimesObfuscate do
  21. local b = a
  22. a = bytef(b)
  23. end
  24. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement