old
For specific security reasons, I can’t share my entire script.
Working on an anti-cheat, and I have to protect some parts of my anti-cheat from further methods and vulnerabilities.
And I have to get some specific functions from the server to stop hooking.
Here is an example with the os library;
--SERVER
security.OnServerInvoke = (function(plr)
print(os)
return os
end)
As you see there, it returns the os library with a remote function, and print(os)
gives an output of functions inside;
{
["clock"] = "function",
["date"] = "function",
["difftime"] = "function",
["time"] = "function"
}
But when it passes to the client, it looks like an empty table;
--CLIENT
giveReq = security:InvokeServer()
print(giveReq)
print("isr done")
This time, it prints {}
; empty table.
How can I fix this problem; can I try to do anything else?
By the way, I have tried to do it with RemoteEvents.
UPDATED: It’s impossible to pass functions from the server.
Working on an anti-cheat, and I’m concerned about hooking.
My main goal is to secure my functions from possible hooking attempts; how can I protect them from the client?
By the way, I will still need them. So If they get hooked, I need replacements.