Advertisement
Guest User

Synapse Script

a guest
Apr 25th, 2019
946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- RemoteSpy for Synapse
  2. -- Written by Autumn (fixed by 3dsboy08) on V3rmillion
  3.  
  4. function formatargs(args,showkeys)
  5.    if #args == 0 then return "N/A" end
  6.    local strargs = {}
  7.    for k,v in next,args do
  8.        local argstr = ""
  9.        if type(v) == "string" then
  10.            argstr = "\"" .. v .. "\""
  11.        elseif type(v) == "table" then
  12.            argstr = "{" .. formatargs(v,true) .. "}"
  13.        else
  14.            argstr = tostring(v)
  15.        end
  16.        if showkeys and type(k) ~= "number" then
  17.            table.insert(strargs,k.."="..argstr)
  18.        else
  19.            table.insert(strargs,argstr)
  20.        end
  21.    end
  22.    return table.concat(strargs, ", ")
  23. end
  24.  
  25. local console = Synapse:GetConsole()
  26. console:CreateConsole("Synapse Key Checker")
  27.  
  28. local realmethods = {}
  29. realmethods.Fire = Instance.new("BindableEvent").Fire
  30. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  31. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  32. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  33.  
  34. function hook(methodname, self, ...)
  35.     local args = {...}
  36.     local ret = {realmethods[methodname](self,...)}
  37.     console:Write(self.ClassName.." called!\nPath: ")
  38.     console:SetColor(console.White)
  39.     console:Write(self:GetFullName())
  40.     console:SetColor(console.LightGray)
  41.     console:Write("\n".."Args: ")
  42.     console:SetColor(console.White)
  43.     console:Write(formatargs(args))
  44.     console:SetColor(console.LightGray)
  45.     console:Write("\nReturn: ")
  46.     console:SetColor(console.White)
  47.     console:Write(formatargs(ret))
  48.     console:SetColor(console.LightGray)
  49.     console:WriteLine("\n")
  50.     return unpack(ret)
  51. end
  52.  
  53. console:SetColor(console.White)
  54. console:WriteLine("Checking Key...\n")
  55. console:WriteLine("Key: Not Found maybee stolen by l33chers\n")
  56. console:WriteLine("Script: Made by Atroxyon\n")
  57. console:SetColor(console.LightGray)
  58. Synapse:SetNamecallHook("FireServer", function(self, ...)
  59.     if self:IsA("RemoteEvent") then
  60.         hook("FireServer", self, ...)
  61.     end
  62. end)
  63. Synapse:SetNamecallHook("InvokeServer", function(self, ...)
  64.     if self:IsA("RemoteFunction") then
  65.         hook("InvokeServer", self, ...)
  66.     end
  67. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement