BlinkingStars

SynapseForProto

Jun 6th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.22 KB | Gaming | 0 0
  1. syn = {
  2.     crypt = {
  3.         custom = {
  4.             hash = protect_function(function(alg, s)
  5.                 return Hash[alg:sub(1, 1):upper() .. alg:sub(2):lower()](s)
  6.             end)
  7.         },
  8.         base64 = {
  9.             encode = Base64.Encode,
  10.             decode = Base64.Decode
  11.         }
  12.     },
  13.     get_thread_identity = get_thread_context
  14. }
  15. isreadonly = protect_function(function(o)
  16.     return not is_writeable(o)
  17. end)
  18. is_readonly = isreadonly
  19. fireclickdetector = click_detector
  20. printoutput = add_to_console
  21. newcclosure = protect_function
  22. firesignal = fire_signal
  23. mouse1click = Input.LeftClick
  24. getnilinstances = get_nil_instances
  25. getscripts = protect_function(function()
  26.     local l = {}
  27.     for script,  env in next, getscriptenvs() do
  28.         l[#l+1] = script
  29.     end
  30.     return l
  31. end)
  32. checkcaller = is_protosmasher_caller
  33. islclosure = is_l_closure
  34. unlockmodulescript = unlock_modulescript
  35. mousemoverel = Input.MoveMouse
  36. replaceclosure = detour_function
  37. getgc = get_gc_objects
  38. firetouchinterest = fake_touch
  39. getconnections = get_signal_cons
  40. getreg = debug.getregistry
  41. hookfunction = protect_function(function(a, b)
  42.     local func = b
  43.     detour_function(a, func, true)
  44.     return getfenv(func).original_function
  45. end)
  46.  
  47. for i, v in next, getfenv() do
  48.     if i ~= "script" then
  49.         getgenv()[i] = v
  50.     end
  51. end
Tags: lua Proto synapse
Add Comment
Please, Sign In to add comment