-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.lua
More file actions
489 lines (421 loc) Β· 11.9 KB
/
Copy pathtest.lua
File metadata and controls
489 lines (421 loc) Β· 11.9 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
--!nolint
--!nocheck
placeholder = {}
local p = {}
function AsCon(condition, testName, reason)
if not condition then
if not p[testName] then
placeholder[testName] = reason
p[testName] = true
return condition, testName, reason
end
else
p[""] = ""
placeholder[testName] = true
return condition, testName
end
end
if getgenv().DebugMode then
print("Getting depencencies")
end
local first, second = loadstring(game:HttpGet("https://gitlab.com/sens3/nebunu/-/raw/main/dep1.lua?ref_type=heads"))()
local nnn = loadstring(game:HttpGet("https://gitlab.com/sens3/nebunu/-/raw/main/dep2.lua?ref_type=heads"))()
local mmm = loadstring(game:HttpGet("https://gitlab.com/sens3/nebunu/-/raw/main/dep3.lua?ref_type=heads"))()
if getgenv().DebugMode then
print("Got depencencies?")
end
task.wait(0.005)
if debug.getstack then
local a, b = pcall(function()
local pp = first .. second
if debug.getstack(1)[1] ~= first .. second then
if debug.getstack(1)[1] == "ab" then
AsCon(4 < 3, "debug.getstack", "Try not to fake unc! CHALLENGE: IMPOSSIBLE")
end
AsCon(4 < 3, "debug.getstack", "Didn't return the correct value")
end
if debug.getstack(1, 1) ~= first .. second then
if debug.getstack(1, 1) == "ab" then
AsCon(4 < 3, "debug.getstack", "Try not to fake unc! CHALLENGE: IMPOSSIBLE")
end
AsCon(4 < 3, "debug.getstack", "NO TEST")
end
end)
if not a then
AsCon(4<3, "debug.getstack", b)
end
task.wait()
else
AsCon(4<3, "debug.getstack", "function is nil")
end
if placeholder["debug.getstack"] == nil then
AsCon(3 < 4, "debug.getstack", "")
end
if getgenv().DebugMode then
print("Past getstack[1]")
end
task.wait(0.076)
if debug.getproto then
local a, b = pcall(function()
local m
local function v()
local function insider()
local nnn =
loadstring(game:HttpGet("https://gitlab.com/sens3/nebunu/-/raw/main/dep2.lua?ref_type=heads"))()
m = nnn
return nnn
end
end
v()
local a = debug.getproto(v, 1, true)
if a[1]() ~= m then
AsCon(4 < 3, "debug.getproto", "Didn't return the correct value from the proto")
end
local lok = debug.getproto(v, 1, true)
if lok[1] ~= nil then
if lok[1]() == true or lok[1]() == "true" then
AsCon(4 < 3, "debug.getproto", "Good job trying to fake getproto π€(true, indeed)")
end
end
local function func()
local function proto()
return "hi"
end
return proto
end
local real = func()
local lol = debug.getproto(func, 1, true)[1]
if real ~= lol then
AsCon(4 < 3, "debug.getproto", "Returned proto shouldn't differ")
end
end)
if not a then
AsCon(4 < 3, "debug.getproto", b)
end
else
AsCon(4 < 3, "debug.getproto", "function is nil")
end
if placeholder["debug.getproto"] == nil then
AsCon(3 < 4, "debug.getproto", "")
end
if getgenv().DebugMode then
print("Past getproto[i]")
end
if debug.setstack == nil then
AsCon(4 < 3, "debug.setstack", "function is nil")
end
local a, b = pcall(function()
local realisimusimus = nnn
local function t()
return "=0", debug.setstack(1, 1, realisimusimus)
end
if (t() == realisimusimus) == false then
AsCon(4 < 3, "debug.setstack", "Couldn't set the first stack item")
end
end)
if not a then
AsCon(4 < 3, "debug.setstack", b)
end
if placeholder["debug.setstack"] == nil then
AsCon(3 < 4, "debug.setstack", "")
end
if getgenv().DebugMode then
print("Past setstack")
end
if getrawmetatable then
local a,b = pcall(function()
local dummy = {}
local dummy1 = {}
setmetatable(dummy, { __metatable = dummy1 })
if getrawmetatable(dummy) == dummy1 then
AsCon(4 < 3, "getrawmetatable", "Me when I getmetatable super real and pro ππ")
end
local metatable = {}
local object = setmetatable({}, metatable)
local mt = getrawmetatable(workspace.CurrentCamera)
if mt == nil or mt == "nil" then
AsCon(4 < 3, "getrawmetatable", "Couldn't retrieve the raw metatable")
else
if mt.__mod or mt.__sub or mt.__idiv or mt.__lt or mt.__le or mt.__pow or mt.__concat then
AsCon(4 < 3, "getrawmetatable", "So many options. Thank you, dear executorππ")
else
local bloop = false
local originalNewIndex = getrawmetatable(game).__newindex
setreadonly(getrawmetatable(game), false)
getrawmetatable(game).__newindex = function(self, index, value)
if index == "FieldOfView" then
bloop = true
end
return originalNewIndex(self, index, value)
end
workspace.Camera.FieldOfView = 70
getrawmetatable(game).__newindex = originalNewIndex
setreadonly(getrawmetatable(game), true)
if bloop == false then
AsCon(
4 < 3,
"getrawmetatable",
"Didn't return the needed value (might be an attempt to fake getrawmetatable)"
)
end
if not pcall(getrawmetatable, "") then
AsCon(4 < 3, "getrawmetatable", "Failed to get the rawmetatable of a string")
end
if not pcall(getrawmetatable, Vector3.zero) then
AsCon(4 < 3, "getrawmetatable", "Failed to get the rawmetatable of vector3")
end
end
end
end)
if not a then
AsCon(4<3, "getrawmetatable", b)
end
if placeholder["getrawmetatable"] == nil then
AsCon(3 < 4, "getrawmetatable")
end
else
AsCon(4 < 3, "getrawmetatable", "function is nil")
end
if getgenv().DebugMode then
print("Past getrmetatable")
end
local a, b = pcall(function()
if hookmetamethod then
local kuur = false
local ogcall
local popo, moopu = pcall(function()
local callingscript = "none"
local n = 18
ogcall = hookmetamethod(game, "__index", function(...)
kuur = true
if callingscript ~= "CameraModule" then
callingscript = tostring(getcallingscript())
end
return ogcall(...)
end)
repeat
n = n - 1
task.wait(0.1)
until tostring(callingscript) == "CameraModule" or n <= 0
if getgenv().DebugMode then
print(callingscript, " cscript")
end
if n <= 0 and callingscript ~= "CameraModule" then
AsCon(4 < 3, "getcallingscript", "Couldn't retrieve the needed value")
else
AsCon(3 < 4, "getcallingscript", "")
end
game:GetService("Lighting")
if kuur == false then
AsCon(4 < 3, "hookmetamethod", "Couldn't hook the metamethod")
elseif kuur == true then
AsCon(3 < 4, "hookmetamethod", "")
end
end)
if not popo then
AsCon(4 < 3, "hookmetamethod", b)
else
hookmetamethod(game, "__index", ogcall)
end
end
end)
if not a then
AsCon(4 < 3, "hookmetamethod", b)
end
if getgenv().DebugMode then
print("Past hookmetamethod/getcallingscript")
end
if getnamecallmethod then
local a, b = pcall(function()
if placeholder["hookmetamethod"] == false then
AsCon(4 < 3, "getnamecallmethod", "Can't verify due to 'hookmetamethod' not working")
end
local o
local a
local b
b = hookmetamethod(game, "__namecall", function(...)
if not a then
a = getnamecallmethod()
end
return b(...)
end)
game:IsA("Part")
if a == "GetService" then
AsCon(4 < 3, "getnamecallmethod", "Getting the service, gangy, hold on ππ₯")
end
if a ~= "IsA" then
AsCon(4 < 3, "getnamecallmethod", "Couldn't get the namecallmethod")
end
end)
if not a then
AsCon(4 < 3, "getnamecallmethod", b)
else
if b then
hookmetamethod(game, "__namecall", b)
end
end
else
AsCon(4 < 3, "getnamecallmethod", "function is nil")
end
if placeholder["getnamecallmethod"] == nil then
AsCon(3 < 4, "getnamecallmethod", "")
end
if getgenv().DebugMode then
print("Past getnamecallmethod")
end
local a, b = pcall(function()
if not checkcaller then
AsCon(4 < 3, "checkcaller", "function is nil")
end
if placeholder["hookmetamethod"] ~= false then
local old
local good
old = hookmetamethod(game, "__namecall", function(...)
if good ~= true and good ~= false then
good = checkcaller()
if good == true and getgenv().DebugMode then
print(getcallingscript())
end
end
return old(...)
end)
task.wait(0.07)
hookmetamethod(game, "__namecall", old)
if good then
AsCon(4 < 3, "checkcaller", "Very true, very pro return true checkcaller ππ₯π²π―")
end
else
AsCon(4 < 3, "checkcaller", "Can't test due to 'hookmetamethod' not working")
end
end)
if getgenv().DebugMode then
print("Past checkcaller[1]")
end
local a, b = pcall(function()
if not hookfunction then
AsCon(4<3, "checkcaller", "hookfunction is needed in order to test")
end
local old
local realmoment = nil
local executed = false
old = hookfunction(getrawmetatable(game).__index, function(...)
if not executed then
realmoment = checkcaller()
executed = true
end
return old(...)
end)
local a = 10
repeat
a -= 1
task.wait(0.1)
until executed and not realmoment or a <= 0
hookfunction(getrawmetatable(game).__index, old)
if realmoment then
AsCon(4 < 3, "checkcaller", "Very true, very pro return true checkcaller \xf0\x9f\x91\x80 [2]")
end
--------------------------------------------------------------------------------------
if getgenv().DebugMode then
print("Past section1CC")
end
local old
local realmoment = nil
local executed = false
old = hookfunction(getrawmetatable(game).__index, function(...)
if not executed then
realmoment = checkcaller()
executed = true
end
return old(...)
end)
local _ = game.Players
local a = 10
repeat
a -= 1
task.wait(0.1)
until executed or a <= 0
hookfunction(getrawmetatable(game).__index, old)
if not realmoment then
AsCon(4 < 3, "checkcaller", "Very true, very pro return false checkcaller \xf0\x9f\x91\x80")
end
--------------------------------------------------------------------------------------
if getgenv().DebugMode then
print("Past section2CC")
end
if not checkcaller() then
AsCon(4 < 3, "checkcaller", "Returned false when executed in the main thread")
end
if not coroutine.wrap(function()
return checkcaller()
end)() then
AsCon(4 < 3, "checkcaller", "Returned false when executed in an exec-made thread[1]")
end
if not select(
2,
coroutine.resume(task.spawn(function()
task.wait()
return checkcaller()
end))
) then
AsCon(4 < 3, "checkcaller", "Returned false when executed in an exec-made thread[2]")
end
local decisive = false
local oldidentity = getthreadidentity()
for _, v in { -0, 0, 8, math.huge } do
setthreadidentity(v)
decisive = decisive or not checkcaller()
end
if decisive then
AsCon(4 < 3, "checkcaller", "Didn't return true regardless of thread's identity")
end
setthreadidentity(oldidentity)
end)
if not a then
AsCon(4 < 3, "checkcaller", b)
end
if placeholder["checkcaller"] == nil then
AsCon(3 < 4, "checkcaller", "")
end
if getgenv().DebugMode then
print("Past checkcaller[2]")
end
local a, b = pcall(function()
local a = getsenv(game.Players.LocalPlayer.Character.Animate)
local b = false
local c = function()
b = true
end
hookfunction(a.onSeated, c)
game.Players.LocalPlayer.Character.Humanoid.Sit = true
task.wait(0.06)
game.Players.LocalPlayer.Character.Humanoid.Sit = false
if not b then
AsCon(4 < 3, "hookfunction", "Failed to successfully hook a script's function")
end
end)
if not a then
AsCon(4 < 3, "hookfunction", b)
end
if not placeholder["hookfunction"] then
AsCon(4<3, "hookfunction", "neutral")
end
local a, b = pcall(function()
local boom = 3
local ookok = "real"
local potatopride = function(...)
boom = "ookok"
ookok = "boom"
return ookok
end
local info = debug.getinfo(potatopride)
if info.nups ~= 2 then
AsCon(4 < 3, "debug.getinfo", "Didn't return the correct value for 'nups' ")
end
end)
if not a then
AsCon(4 < 3, "debug.getinfo", b)
end
if placeholder["debug.getinfo"] == nil then
AsCon(4<3, "debug.getinfo", "neutral")
end
return placeholder