-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBypass.lua
More file actions
274 lines (224 loc) · 8.44 KB
/
Copy pathBypass.lua
File metadata and controls
274 lines (224 loc) · 8.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
-- Pretty much just a bunch of know detection bypasses. (Big thanks to Lego Hacker, Modulus, Bluwu, and I guess Iris or something)
-- GCInfo/CollectGarbage Bypass (Realistic by Lego - Amazing work!)
task.spawn(function()
repeat task.wait() until game:IsLoaded()
local Amplitude = 200
local RandomValue = {-200,200}
local RandomTime = {.1, 1}
local floor = math.floor
local cos = math.cos
local sin = math.sin
local acos = math.acos
local pi = math.pi
local Maxima = 0
--Waiting for gcinfo to decrease
while task.wait() do
if gcinfo() >= Maxima then
Maxima = gcinfo()
else
break
end
end
task.wait(0.30)
local OldGcInfo = gcinfo()+Amplitude
local tick = 0
--Spoofing gcinfo
local function getreturn()
local Formula = ((acos(cos(pi * (tick)))/pi * (Amplitude * 2)) + -Amplitude )
return floor(OldGcInfo + Formula);
end
local Old; Old = hookfunction(getrenv().gcinfo, function(...)
return getreturn();
end)
local Old2; Old2 = hookfunction(getrenv().collectgarbage, function(arg, ...)
local suc, err = pcall(Old2, arg, ...)
if suc and arg == "count" then
return getreturn();
end
return Old2(arg, ...);
end)
game:GetService("RunService").Stepped:Connect(function()
local Formula = ((acos(cos(pi * (tick)))/pi * (Amplitude * 2)) + -Amplitude )
if Formula > ((acos(cos(pi * (tick)+.01))/pi * (Amplitude * 2)) + -Amplitude ) then
tick = tick + .07
else
tick = tick + 0.01
end
end)
local old1 = Amplitude
for i,v in next, RandomTime do
RandomTime[i] = v * 10000
end
local RandomTimeValue = math.random(RandomTime[1],RandomTime[2])/10000
--I can make it 0.003 seconds faster, yea, sure
while wait(RandomTime) do
Amplitude = math.random(old1+RandomValue[1], old1+RandomValue[2])
RandomTimeValue = math.random(RandomTime[1],RandomTime[2])/10000
end
end)
-- Memory Bypass
task.spawn(function()
repeat task.wait() until game:IsLoaded()
local RunService = cloneref(game:GetService("RunService"))
local Stats = cloneref(game:GetService("Stats"))
local CurrMem = Stats:GetTotalMemoryUsageMb();
local Rand = 0
RunService.Stepped:Connect(function()
local random = Random.new()
Rand = random:NextNumber(-10, 10);
end)
local function GetReturn()
return CurrMem + Rand;
end
local _MemBypass
_MemBypass = hookmetamethod(game, "__namecall", function(self,...)
local method = getnamecallmethod();
if not checkcaller() then
if typeof(self) == "Instance" and (method == "GetTotalMemoryUsageMb" or method == "getTotalMemoryUsageMb") and self.ClassName == "Stats" then
return GetReturn();
end
end
return _MemBypass(self,...)
end)
-- Indexed Versions
local _MemBypassIndex; _MemBypassIndex = hookfunction(Stats.GetTotalMemoryUsageMb, function(self, ...)
if not checkcaller() then
if typeof(self) == "Instance" and self.ClassName == "Stats" then
return GetReturn();
end
end
end)
end)
-- Memory Bypass X2 (Newer Method / Func)
task.spawn(function()
repeat task.wait() until game:IsLoaded()
local RunService = cloneref(game:GetService("RunService"))
local Stats = cloneref(game:GetService("Stats"))
local CurrMem = Stats:GetMemoryUsageMbForTag(Enum.DeveloperMemoryTag.Gui);
local Rand = 0
RunService.Stepped:Connect(function()
local random = Random.new()
Rand = random:NextNumber(-0.1, 0.1);
end)
local function GetReturn()
return CurrMem + Rand;
end
local _MemBypass
_MemBypass = hookmetamethod(game, "__namecall", function(self,...)
local method = getnamecallmethod();
if not checkcaller() then
if typeof(self) == "Instance" and (method == "GetMemoryUsageMbForTag" or method == "getMemoryUsageMbForTag") and self.ClassName == "Stats" then
return GetReturn();
end
end
return _MemBypass(self,...)
end)
-- Indexed Versions
local _MemBypassIndex; _MemBypassIndex = hookfunction(Stats.GetMemoryUsageMbForTag, function(self, ...)
if not checkcaller() then
if typeof(self) == "Instance" and self.ClassName == "Stats" then
return GetReturn();
end
end
end)
end)
-- ContentProvider Bypasses
local Content = cloneref(game:GetService("ContentProvider"));
local CoreGui = cloneref(game:GetService("CoreGui"));
local randomizedCoreGuiTable;
local randomizedGameTable;
local coreguiTable = {}
game:GetService("ContentProvider"):PreloadAsync({CoreGui}, function(assetId) --use preloadasync to patch preloadasync :troll:
if not assetId:find("rbxassetid://") then
table.insert(coreguiTable, assetId);
end
end)
local gameTable = {}
for i, v in pairs(game:GetDescendants()) do
if v:IsA("ImageLabel") then
if v.Image:find('rbxassetid://') and v:IsDescendantOf(CoreGui) then else
table.insert(gameTable, v.Image)
end
end
end
function randomizeTable(t)
local n = #t
while n > 0 do
local k = math.random(n)
t[n], t[k] = t[k], t[n]
n = n - 1
end
return t
end
local ContentProviderBypass
ContentProviderBypass = hookmetamethod(game, "__namecall", function(self, Instances, ...)
local method = getnamecallmethod();
local args = ...;
if not checkcaller() and (method == "preloadAsync" or method == "PreloadAsync") then
if Instances and Instances[1] and self.ClassName == "ContentProvider" then
if Instances ~= nil then
if typeof(Instances[1]) == "Instance" and (table.find(Instances, CoreGui) or table.find(Instances, game)) then
if Instances[1] == CoreGui then
randomizedCoreGuiTable = randomizeTable(coreguiTable)
return ContentProviderBypass(self, randomizedCoreGuiTable, ...)
end
if Instances[1] == game then
randomizedGameTable = randomizeTable(gameTable)
return ContentProviderBypass(self, randomizedGameTable, ...)
end
end
end
end
end
return ContentProviderBypass(self, Instances, ...)
end)
local preloadBypass; preloadBypass = hookfunction(Content.PreloadAsync, function(a, b, c)
if not checkcaller() then
if typeof(a) == "Instance" and tostring(a) == "ContentProvider" and typeof(b) == "table" then
if (table.find(b, CoreGui) or table.find(b, game)) and not (table.find(b, true) or table.find(b, false)) then
if b[1] == CoreGui then -- Double Check
randomizedCoreGuiTable = randomizeTable(coreguiTable)
return preloadBypass(a, randomizedCoreGuiTable, c)
end
if b[1] == game then -- Triple Check
randomizedGameTable = randomizeTable(gameTable)
return preloadBypass(a, randomizedGameTable, c)
end
end
end
end
return preloadBypass(a, b, c)
end)
-- GetFocusedTextBox Bypass
local _IsDescendantOf = game.IsDescendantOf
local TextboxBypass
TextboxBypass = hookmetamethod(game, "__namecall", function(self,...)
local method = getnamecallmethod();
local args = ...;
if not checkcaller() then
if typeof(self) == "Instance" and method == "GetFocusedTextBox" and self.ClassName == "UserInputService" then
local Textbox = TextboxBypass(self,...);
if Textbox and typeof(Textbox) == "Instance" then
local succ,err = pcall(function() _IsDescendantOf(Textbox, Bypassed_Dex) end)
if err and err:match("The current identity") then
return nil;
end
end
end
end
return TextboxBypass(self,...);
end)
--Newproxy Bypass (Stolen from Lego Hacker (V3RM))
local TableNumbaor001 = {}
local SomethingOld;
SomethingOld = hookfunction(getrenv().newproxy, function(...)
local proxy = SomethingOld(...)
table.insert(TableNumbaor001, proxy)
return proxy
end)
local RunService = cloneref(game:GetService("RunService"))
RunService.Stepped:Connect(function()
for i,v in pairs(TableNumbaor001) do
if v == nil then end
end
end)