Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local g = getgenv()
- local old_string = string
- local old_table = table
- g.hookfunction = function()
- warn("ProtoSmahser does not have hookfunction.")
- end
- g.getgc = get_gc_objects
- g.setreadonly = function(table, a)
- if a == true then
- make_writeable(table)
- elseif a == false then
- make_readonly(table)
- end
- end
- g.syn = {}
- g.syn.crypt = {}
- g.syn.crypt.base64 = {}
- g.mousemoverel = function(x, y)
- Input.MoveMouse(x, y)
- end
- g.clipboard_get = function()
- return "ProtoSmasher does not have anything that gets the clipboard's content."
- end
- g.clipboard_set = function(string)
- write_clipboard(string)
- end
- g.fireclickdetector = function()
- warn("ProtoSmasher does not have fireclickdetector.")
- end
- g.newcclosure = function()
- warn("ProtoSmasher does not have newcclosure.")
- end
- g.syn.dumpstring = function(string)
- local bytes = ""
- for i=1,old_string.len(string) do
- bytes = bytes.."\\"..old_string.byte(string, i)
- end
- return bytes
- end
- g.mousescroll = function(int)
- Input.ScrollMouse(int)
- end
- g.syn.write_clipboard = function(string)
- write_clipboard(string)
- end
- g.syn.crypt.encrypt = function()
- warn("You cannot use Synapse's encryption method yet.")
- return ""
- end
- g.syn.crypt.decrypt = function()
- warn("You cannot use Synapse's encryption method yet.")
- return ""
- end
- g.syn.crypt.hash = function(string)
- return Hash.Sha3_256(string) or ""
- end
- g.syn.crypt.base64.encode = function(string)
- return Base64.Encode(string) or ""
- end
- g.syn.crypt.base64.decode = function(string)
- return Base64.Decode(string) or ""
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement