Advertisement
blinxf

updated adonis bypass

Mar 16th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. local getinfo = getinfo or debug.getinfo
  2. local DEBUG = false
  3. local Hooked = {}
  4.  
  5. local Detected, Kill
  6.  
  7. -- setthreadidentity(2) -- Commented out if not supported
  8.  
  9. -- Search for Detected and Kill functions in the garbage collection
  10. for i, v in getgc(true) do
  11. if typeof(v) == "table" then
  12. local DetectFunc = rawget(v, "Detected")
  13. local KillFunc = rawget(v, "Kill")
  14.  
  15. -- Override Detected function if found
  16. if typeof(DetectFunc) == "function" and not Detected then
  17. Detected = DetectFunc
  18. v.Detected = function(Action, Info, NoCrash)
  19. if Action ~= "_" then
  20. if DEBUG then
  21. warn("Adonis AntiCheat flagged\nMethod: " .. Action .. "\nInfo: " .. Info)
  22. end
  23. end
  24. return true
  25. end
  26. table.insert(Hooked, Detected)
  27. end
  28.  
  29. -- Override Kill function if found
  30. if rawget(v, "Variables") and rawget(v, "Process") and typeof(KillFunc) == "function" and not Kill then
  31. Kill = KillFunc
  32. v.Kill = function(Info)
  33. if DEBUG then
  34. warn("Adonis AntiCheat tried to kill (fallback): " .. Info)
  35. end
  36. end
  37. table.insert(Hooked, Kill)
  38. end
  39. end
  40. end
  41.  
  42. -- Override debug.info
  43. local OldDebugInfo = getrenv().debug.info
  44. getrenv().debug.info = function(...)
  45. local LevelOrFunc, Info = ...
  46.  
  47. if Detected and LevelOrFunc == Detected then
  48. if DEBUG then
  49. warn("Adonis AntiCheat sanity check detected and broken")
  50. end
  51. return coroutine.yield(coroutine.running())
  52. end
  53.  
  54. return OldDebugInfo(...)
  55. end
  56.  
  57. -- setthreadidentity(7) -- Commented out if not supported
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement