-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathSynapseForProto.lua
More file actions
51 lines (50 loc) · 1.17 KB
/
SynapseForProto.lua
File metadata and controls
51 lines (50 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
syn = {
crypt = {
custom = {
hash = protect_function(function(alg, s)
return Hash[alg:sub(1, 1):upper() .. alg:sub(2):lower()](s)
end)
},
base64 = {
encode = Base64.Encode,
decode = Base64.Decode
}
},
get_thread_identity = get_thread_context
}
isreadonly = protect_function(function(o)
return not is_writeable(o)
end)
is_readonly = isreadonly
fireclickdetector = click_detector
printoutput = add_to_console
newcclosure = protect_function
firesignal = fire_signal
mouse1click = Input.LeftClick
getnilinstances = get_nil_instances
getscripts = protect_function(function()
local l = {}
for script, env in next, getscriptenvs() do
l[#l+1] = script
end
return l
end)
checkcaller = is_protosmasher_caller
islclosure = is_l_closure
unlockmodulescript = unlock_modulescript
mousemoverel = Input.MoveMouse
replaceclosure = detour_function
getgc = get_gc_objects
firetouchinterest = fake_touch
getconnections = get_signal_cons
getreg = debug.getregistry
hookfunction = protect_function(function(a, b)
local func = b
detour_function(a, func, true)
return getfenv(func).original_function
end)
for i, v in next, getfenv() do
if i ~= "script" then
getgenv()[i] = v
end
end