Advertisement
zephpsian

Untitled

Nov 6th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. local g = getgenv()
  2. local old_string = string
  3. local old_table = table
  4. g.hookfunction = function()
  5. warn("ProtoSmahser does not have hookfunction.")
  6. end
  7. g.getgc = get_gc_objects
  8. g.setreadonly = function(table, a)
  9. if a == true then
  10. make_writeable(table)
  11. elseif a == false then
  12. make_readonly(table)
  13. end
  14. end
  15. g.syn = {}
  16. g.syn.crypt = {}
  17. g.syn.crypt.base64 = {}
  18. g.mousemoverel = function(x, y)
  19. Input.MoveMouse(x, y)
  20. end
  21. g.clipboard_get = function()
  22. return "ProtoSmasher does not have anything that gets the clipboard's content."
  23. end
  24. g.clipboard_set = function(string)
  25. write_clipboard(string)
  26. end
  27. g.fireclickdetector = function()
  28. warn("ProtoSmasher does not have fireclickdetector.")
  29. end
  30. g.newcclosure = function()
  31. warn("ProtoSmasher does not have newcclosure.")
  32. end
  33. g.syn.dumpstring = function(string)
  34. local bytes = ""
  35. for i=1,old_string.len(string) do
  36. bytes = bytes.."\\"..old_string.byte(string, i)
  37. end
  38. return bytes
  39. end
  40.  
  41. g.mousescroll = function(int)
  42. Input.ScrollMouse(int)
  43. end
  44. g.syn.write_clipboard = function(string)
  45. write_clipboard(string)
  46. end
  47. g.syn.crypt.encrypt = function()
  48. warn("You cannot use Synapse's encryption method yet.")
  49. return ""
  50. end
  51. g.syn.crypt.decrypt = function()
  52. warn("You cannot use Synapse's encryption method yet.")
  53. return ""
  54. end
  55. g.syn.crypt.hash = function(string)
  56. return Hash.Sha3_256(string) or ""
  57. end
  58. g.syn.crypt.base64.encode = function(string)
  59. return Base64.Encode(string) or ""
  60. end
  61. g.syn.crypt.base64.decode = function(string)
  62. return Base64.Decode(string) or ""
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement