MaxproGlitcher

Blocker contre les script malware ..

Jan 20th, 2026
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.50 KB | None | 0 0
  1. do
  2. local a,b,c,d,e,f,g=warn,clonefunction,hookfunction,newcclosure,getgenv and getgenv()or _G,type,string.lower
  3. local h=function(u)
  4. if f(u)=="string"and g(u):match("^file://")then
  5. warn("[BLOCKER] script that you ran has tried to abuse the request vuln but was blocked. "..u:gsub("^file:///",""):sub(1,100))
  6. return true
  7. end
  8. return false
  9. end
  10. local i,j,k=b and e.request and b(e.request),b and e.http_request and b(e.http_request),b and syn and syn.request and b(syn.request)
  11. local l=function(o)
  12. if not o then return nil end
  13. local fn=function(p)
  14. local u=f(p)=="table"and p.Url or p
  15. if h(u)then return{Success=false,StatusCode=403,Body=""}end
  16. return o(p)
  17. end
  18. return d and d(fn)or fn
  19. end
  20. if c then
  21. if i then c(e.request,l(i))end
  22. if j then c(e.http_request,l(j))end
  23. if k then c(syn.request,l(k))end
  24. end
  25. local m=d and d(function()end)or function()end
  26. local n=function()return nil end
  27. local o=d and d(n)or n
  28. pcall(function()
  29. if debug then
  30. debug.getupvalue,debug.setupvalue,debug.getupvalues,debug.setconstant=o,o,o,o
  31. debug.getconstant,debug.getconstants,debug.getinfo,debug.getlocal=o,o,o,o
  32. debug.getlocals,debug.setlocal,debug.getproto,debug.getprotos=o,o,o,o
  33. debug.getstack,debug.setstack,debug.getregistry=o,o,o
  34. end
  35. end)
  36. if c then
  37. local p=function(fn,r)
  38. if fn==e.request or fn==e.http_request or(syn and fn==syn.request)then return fn end
  39. return c(fn,r)
  40. end
  41. e.hookfunction,e.replaceclosure,e.hookfunc=d and d(p)or p,d and d(p)or p,d and d(p)or p
  42. e.detourfunction,e.replacefunction=d and d(p)or p,d and d(p)or p
  43. end
  44. if b then
  45. local q=function(fn)
  46. if fn==e.request or fn==e.http_request or(syn and fn==syn.request)then return fn end
  47. return b(fn)
  48. end
  49. e.clonefunction,e.clonefunc=d and d(q)or q,d and d(q)or q
  50. end
  51. pcall(function()e.restorefunction,e.restorefunc=m,m end)
  52. pcall(function()
  53. if getfenv then e.getfenv=d and d(function(x)if f(x)=="function"then return{}end return getfenv(x)end)or function()return{}end end
  54. if setfenv then e.setfenv=m end
  55. end)
  56. if getrenv then
  57. pcall(function()
  58. local r=getrenv()
  59. if r and c then
  60. if r.request and i then c(r.request,l(i))end
  61. if r.http_request and j then c(r.http_request,l(j))end
  62. end
  63. end)
  64. end
  65. if getgc then
  66. pcall(function()
  67. local s=getgc
  68. e.getgc=d and d(function(...)
  69. local t=s(...)
  70. for x=1,#t do if t[x]==i or t[x]==j or t[x]==k then t[x]=nil end end
  71. return t
  72. end)or function()return{}end
  73. end)
  74. end
  75. pcall(function()
  76. if getrawmetatable then
  77. local u=getrawmetatable
  78. e.getrawmetatable=d and d(function(x)
  79. local mt=u(x)
  80. if mt and(mt.__index==i or mt.__index==j or mt.__namecall==i)then return nil end
  81. return mt
  82. end)or u
  83. end
  84. end)
  85. pcall(function()
  86. if iscclosure then
  87. local v=iscclosure
  88. e.iscclosure=d and d(function(fn)
  89. if fn==e.request or fn==e.http_request or(syn and fn==syn.request)then return true end
  90. return v(fn)
  91. end)or v
  92. e.is_cclosure=e.iscclosure
  93. end
  94. if islclosure then
  95. local w=islclosure
  96. e.islclosure=d and d(function(fn)
  97. if fn==e.request or fn==e.http_request or(syn and fn==syn.request)then return false end
  98. return w(fn)
  99. end)or w
  100. e.is_lclosure=e.islclosure
  101. end
  102. end)
  103. pcall(function()
  104. if getconnections then
  105. local y=getconnections
  106. e.getconnections=d and d(function(...)
  107. local z=y(...)
  108. for x=1,#z do
  109. if z[x]and z[x].Function then
  110. if z[x].Function==e.request or z[x].Function==e.http_request then
  111. z[x]=nil
  112. end
  113. end
  114. end
  115. return z
  116. end)or y
  117. end
  118. end)
  119. pcall(function()
  120. if getscriptclosure then e.getscriptclosure=o end
  121. if getscriptfunction then e.getscriptfunction=o end
  122. if getsenv then
  123. local z=getsenv
  124. e.getsenv=d and d(function(scr)
  125. local env=z(scr)
  126. if env then
  127. env.request=e.request
  128. env.http_request=e.http_request
  129. end
  130. return env
  131. end)or z
  132. end
  133. end)
  134. pcall(function()
  135. if checkcaller then
  136. e.checkcaller=d and d(function()return true end)or function()return true end
  137. end
  138. end)
  139. pcall(function()
  140. if getthreadidentity then
  141. e.getthreadidentity=d and d(function()return 8 end)or function()return 8 end
  142. e.getidentity=e.getthreadidentity
  143. e.getthreadcontext=e.getthreadidentity
  144. end
  145. end)
  146. pcall(function()
  147. if game and c then
  148. local hs=game:GetService("HttpService")
  149. if hs then
  150. local ab=b and b(hs.GetAsync)or hs.GetAsync
  151. local ac=b and b(hs.RequestAsync)or hs.RequestAsync
  152. if ab then
  153. c(hs.GetAsync,d and d(function(self,url,...)
  154. if h(url)then return""end
  155. return ab(self,url,...)
  156. end)or function(self,url,...)if h(url)then return""end return ab(self,url,...)end)
  157. end
  158. if ac then
  159. c(hs.RequestAsync,d and d(function(self,req,...)
  160. local url=f(req)=="table"and req.Url or req
  161. if h(url)then return{Success=false,StatusCode=403,Body=""}end
  162. return ac(self,req,...)
  163. end)or function(self,req,...)local url=f(req)=="table"and req.Url or req;if h(url)then return{Success=false,StatusCode=403,Body=""}end return ac(self,req,...)end)
  164. end
  165. end
  166. end
  167. end)
  168. print("sk3lp3y's request vuln blocker loaded.")
  169. end
Advertisement
Add Comment
Please, Sign In to add comment