-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
539 lines (536 loc) · 40.7 KB
/
index.html
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
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
<html>
<head>
<script>
const original_join = Array.prototype.join;
const sig_toString = "function toString() { [native code] }";
const sig_toDateString = "function toDateString() { [native code] }";
const sig_join = "function join() { [native code] }";
delete Error.prepareStackTrace; // attempt to remove tampering of stack trace
console.warn('loaded detector');
function get_getters(parent, key) {
return [
Reflect.getOwnPropertyDescriptor(parent, key).get,
Object.getOwnPropertyDescriptor(parent, key).get,
Object.getOwnPropertyDescriptors(parent)[key].get,
parent.__lookupGetter__(key)
];
}
function get_descriptors(parent, key) {
return [
Reflect.getOwnPropertyDescriptor(parent, key),
Object.getOwnPropertyDescriptor(parent, key),
Object.getOwnPropertyDescriptors(parent)[key]
];
}
// detections return true if something was detected
var detections = [
function check_modification() {
return Array.prototype.join !== original_join;
},
function check_toString_1() {
return Array.prototype.join.toString() !== sig_join;
},
function check_toString_2() {
return Function.prototype.toString.apply(Array.prototype.join, []) !== sig_join;
},
function check_toString_3() {
return Function.prototype.toString.apply(Array.prototype.join.toString) !== sig_toString;
},
function check_toString_4() {
return Object.getOwnPropertyDescriptor(Array.prototype.join, 'toString') !== undefined; // toString shouldn't be manually defined
},
function check_toString_5() {
return Array.prototype.join.toString.toString() !== sig_toString;
},
function check_toString_6() {
return Array.prototype.join.toString.name.includes('bind'); // if toString was manually defined by .bind
},
function check_toString_7() {
return Date.prototype.toString.toString() !== sig_toString;
},
function check_toString_8() {
return Function.prototype.toString.apply(Date.prototype.toString) !== sig_toString;
},
function check_arguments_1() {
try {
Array.prototype.join.arguments;
} catch(e) {
return false;
}
return true;
},
function check_arguments_2() {
return Object.getOwnPropertyDescriptor(Array.prototype.join, 'arguments') !== undefined;
},
function check_prototype() {
// from Lemons#0001 /~https://github.com/Lemons1337/
return "prototype" in Array.prototype.join;
},
function check_sanity_1() {
try {
return ['1', 2, {'toString': () => '3'}].join(',') !== '1,2,3';
} catch(e) {
return true;
}
return false;
},
function check_sanity_2() {
var a = [];
a.push(Array.prototype.join);
return a[0] !== Array.prototype.join;
},
function check_sanity_3() {
try {
Array.prototype.join.apply(window);
} catch(e) {
return true;
}
return false;
},
function check_stack_1() {
// detect proxy since they will have to call the actual function -> increased stack trace lines
Error.stackTraceLimit = 10;
try {
Array.prototype.join.apply();
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.split('\n').length !== 4; // a tailored stack trace check
}
return true;
},
function check_stack_2() {
var arr = [
{
'toString': () => {
Error.stackTraceLimit = 10;
try {
null.test
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
if (stack.split('\n').length !== 5) {
return 'DETECTED';
}
}
return '';
}
}
];
return arr.join() === 'DETECTED';
},
function check_stack_3() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toString.apply(Array.prototype.join, []);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('Proxy.toString') || stack.includes('apply') || !stack.includes(sig_join);
}
return true;
},
function check_stack_4_toString() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toString.apply(Array.prototype.join.toString, []);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_toString)
}
return true;
},
function check_stack_5_toString() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toDateString.apply(Array.prototype.join.toString, []);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_toString);
}
return true;
},
function check_stack_6() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toDateString.apply(Array.prototype.join, []);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('Proxy.toString') || stack.includes('apply') || !stack.includes(sig_join);
}
return true;
},
function check_stack_7_toString() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toString.apply(Function.prototype.toString);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('Proxy.toString') || stack.includes('apply') || !stack.includes(sig_toString);
}
return true;
},
function check_stack_8_toString() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toDateString.apply(Function.prototype.toString);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('Proxy.toString') || stack.includes('apply') || !stack.includes(sig_toString);
}
return true;
},
function check_stack_9_toString() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toDateString.apply(Date.prototype.toString);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('Proxy.toString') || stack.includes('apply') || !stack.includes(sig_toString);
}
return true;
},
function check_stack_10_toString() {
Error.stackTraceLimit = 10;
try {
Date.prototype.toString.apply(Date.prototype.toDateString);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('Proxy.toString') || stack.includes('apply') || !stack.includes(sig_toDateString);
}
return true;
},
function check_stack_11_object_create() {
// from Lemons#0001 /~https://github.com/Lemons1337/
try {
Object.create(Array.prototype.join).toString();
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return stack.includes('at Object.toString (<anonymous>)');
}
return true;
},
function check_stack_12_in() {
// from Lemons#0001 /~https://github.com/Lemons1337/
try {
Array.prototype.join in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_join);
}
return true;
},
function check_stack_13_toString_in() {
// from Lemons#0001 /~https://github.com/Lemons1337/
try {
Array.prototype.join.toString in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_toString);
}
return true;
},
function check_stack_14_toLocaleDateString() {
// from Lemons#0001 /~https://github.com/Lemons1337/
try {
Date.prototype.toLocaleDateString.call(Array.prototype.join);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_join);
}
return true;
},
function check_stack_15_toLocaleDateString() {
try {
Date.prototype.toLocaleDateString.call(Array.prototype.join);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_join);
}
return true;
},
function check_stack_16_BigUint64Array_slice() {
try {
BigUint64Array.prototype.slice.apply(Array.prototype.join);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_join);
}
return true;
},
function check_stack_17_BigUint64Array_sort() {
try {
BigUint64Array.prototype.sort.apply(Array.prototype.join);
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes(sig_join);
}
return true;
},
function check_stack_18_proxy() {
try {
new Proxy(Object,{}) in 0
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes('function Object() { [native code] }');
}
return true;
},
function check_SymbolToStringTag_ArrayBuffer() {
try {
ArrayBuffer.prototype in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes("#<ArrayBuffer>");
}
return true;
},
function check_SymbolToStringTag_DataView() {
try {
DataView.prototype in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes("#<DataView>");
}
return true;
},
function check_SymbolToStringTag_Map() {
try {
Map.prototype in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes("#<Map>");
}
return true;
},
function check_SymbolToStringTag_Object() {
try {
Object.prototype in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes("#<Object>");
}
return true;
},
function check_SymbolToStringTag_Promise() {
try {
Promise.prototype in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes("#<Promise>");
}
return true;
},
function check_SymbolToStringTag_Set() {
try {
Set.prototype in 0;
} catch(e) {
const stack = e.stack;
console.log('%s\n----\n%s', arguments.callee.name, stack);
return !stack.includes("#<Set>");
}
return true;
},
function check_SymbolToStringTag_TypeError() {
try {
TypeError.prototype in 0;
} catch(e) {
return !e.stack.includes("Cannot use 'in' operator to search for 'TypeError' in 0");
}
return true;
},
function check_SymbolToStringTag_SyntaxError() {
try {
SyntaxError.prototype in 0;
} catch(e) {
return !e.stack.includes("Cannot use 'in' operator to search for 'SyntaxError' in 0");
}
return true;
},
function check_error_1() {
try {
Array.prototype.join in 0;
} catch(e) {
// from Lemons#0001 /~https://github.com/Lemons1337/
var message = (e + '');
console.log('%s\n----\n%s', arguments.callee.name, message);
return !message.includes(sig_join);
}
return true;
},
function check_error_2() {
try {
postMessage(Array.prototype.join);
} catch(e) {
// from Lemons#0001 /~https://github.com/Lemons1337/
var message = (e + '');
console.log('%s\n----\n%s', arguments.callee.name, message);
return !message.includes(sig_join);
}
return true;
},
function check_error_3() {
try {
history.pushState(Array.prototype.join, 1)
} catch(e) {
// from Lemons#0001 /~https://github.com/Lemons1337/
var message = (e + '');
console.log('%s\n----\n%s', arguments.callee.name, message);
return !message.includes(sig_join);
}
return true;
},
function check_error_4() {
try {
Array.prototype.join in 0;
} catch(e) {
// from Lemons#0001 /~https://github.com/Lemons1337/
var message = e.message;
console.log('%s\n----\n%s', arguments.callee.name, message);
return !message.includes(sig_join);
}
return true;
},
function check_name() {
return Array.prototype.join.name !== 'join';
},
function check_length() {
return Array.prototype.join.length !== 1;
},
function check_apply_prototype_is_used() {
var apply = Function.prototype.apply;
Function.prototype.apply = _=>_ ;
var detected = Array.prototype.join([], []) !== '';
detected |= Array.prototype.join.toString() !== sig_join;
Function.prototype.apply = apply;
return detected;
},
function check_apply_is_used() {
var apply = Array.prototype.join.apply;
Array.prototype.join.apply = _=>_ ;
var detected = Array.prototype.join([], []) !== '';
detected |= Array.prototype.join.toString() !== sig_join;
Array.prototype.join.apply = apply;
return detected;
},
function check_reflect_apply_is_used() {
var apply = Reflect.apply;
Reflect.apply = _=>_ ;
var detected = Array.prototype.join([], []) !== '';
detected |= Array.prototype.join.toString() !== sig_join;
Reflect.apply = apply;
return detected;
},
function check_WeakMap_get_is_used() {
var get = WeakMap.prototype.get;
WeakMap.prototype.get = _=>_ ;
var detected = Array.prototype.join([], []) !== '';
detected |= Array.prototype.join.toString() !== sig_join;
WeakMap.prototype.get = get;
return detected;
},
function check_Map_get_is_used() {
var get = Map.prototype.get;
Map.prototype.get = _=>_ ;
var detected = Array.prototype.join([], []) !== '';
detected |= Array.prototype.join.toString() !== sig_join;
Map.prototype.get = get;
return detected;
},
function check_TypeError_name() {
var getters = get_getters(TypeError.prototype, 'name');
return !getters.every(x => x === undefined);
},
function check_Error_prepareStackTrace() {
var desciptors = get_descriptors(Error, 'prepareStackTrace');
return !desciptors.every(x => x === undefined);
},
];
// wait for cheats to load
setTimeout(() => {
var ul = document.getElementById('detections');
var hits = 0;
function add_detection(msg) {
console.warn(msg);
var li = document.createElement("LI");
li.append(document.createTextNode(msg));
li.classList.add('fail');
ul.appendChild(li);
hits += 1;
}
for (var i = 0; i < detections.length; i++) {
var detected = true;
try {
var detected = detections[i]();
} catch(e) {}
if (detected) {
var msg = 'DETECTED: ' + detections[i].name;
add_detection(msg);
}
}
document.title = '(' + hits + ') TamperDetectJS';
var check_list = [["Object","prototype","constructor"],["Object","prototype","__defineGetter__"],["Object","prototype","__defineSetter__"],["Object","prototype","hasOwnProperty"],["Object","prototype","__lookupGetter__"],["Object","prototype","__lookupSetter__"],["Object","prototype","isPrototypeOf"],["Object","prototype","propertyIsEnumerable"],["Object","prototype","toString"],["Object","prototype","valueOf"],["Array","prototype","constructor"],["Array","prototype","concat"],["Array","prototype","copyWithin"],["Array","prototype","fill"],["Array","prototype","find"],["Array","prototype","findIndex"],["Array","prototype","lastIndexOf"],["Array","prototype","pop"],["Array","prototype","push"],["Array","prototype","reverse"],["Array","prototype","shift"],["Array","prototype","unshift"],["Array","prototype","slice"],["Array","prototype","sort"],["Array","prototype","splice"],["Array","prototype","includes"],["Array","prototype","indexOf"],["Array","prototype","join"],["Array","prototype","keys"],["Array","prototype","entries"],["Array","prototype","values"],["Array","prototype","forEach"],["Array","prototype","filter"],["Array","prototype","flat"],["Array","prototype","flatMap"],["Array","prototype","map"],["Array","prototype","every"],["Array","prototype","some"],["Array","prototype","reduce"],["Array","prototype","reduceRight"],["Array","prototype","toLocaleString"],["Array","prototype","toString"],["Number","prototype","constructor"],["Number","prototype","toExponential"],["Number","prototype","toFixed"],["Number","prototype","toPrecision"],["Number","prototype","toString"],["Number","prototype","valueOf"],["Number","prototype","toLocaleString"],["Boolean","prototype","constructor"],["Boolean","prototype","toString"],["Boolean","prototype","valueOf"],["String","prototype","constructor"],["String","prototype","anchor"],["String","prototype","big"],["String","prototype","blink"],["String","prototype","bold"],["String","prototype","charAt"],["String","prototype","charCodeAt"],["String","prototype","codePointAt"],["String","prototype","concat"],["String","prototype","endsWith"],["String","prototype","fontcolor"],["String","prototype","fontsize"],["String","prototype","fixed"],["String","prototype","includes"],["String","prototype","indexOf"],["String","prototype","italics"],["String","prototype","lastIndexOf"],["String","prototype","link"],["String","prototype","localeCompare"],["String","prototype","match"],["String","prototype","matchAll"],["String","prototype","normalize"],["String","prototype","padEnd"],["String","prototype","padStart"],["String","prototype","repeat"],["String","prototype","replace"],["String","prototype","search"],["String","prototype","slice"],["String","prototype","small"],["String","prototype","split"],["String","prototype","strike"],["String","prototype","sub"],["String","prototype","substr"],["String","prototype","substring"],["String","prototype","sup"],["String","prototype","startsWith"],["String","prototype","toString"],["String","prototype","trim"],["String","prototype","trimStart"],["String","prototype","trimLeft"],["String","prototype","trimEnd"],["String","prototype","trimRight"],["String","prototype","toLocaleLowerCase"],["String","prototype","toLocaleUpperCase"],["String","prototype","toLowerCase"],["String","prototype","toUpperCase"],["String","prototype","valueOf"],["Symbol","prototype","constructor"],["Symbol","prototype","toString"],["Symbol","prototype","valueOf"],["Date","prototype","constructor"],["Date","prototype","toString"],["Date","prototype","toDateString"],["Date","prototype","toTimeString"],["Date","prototype","toISOString"],["Date","prototype","toUTCString"],["Date","prototype","toGMTString"],["Date","prototype","getDate"],["Date","prototype","setDate"],["Date","prototype","getDay"],["Date","prototype","getFullYear"],["Date","prototype","setFullYear"],["Date","prototype","getHours"],["Date","prototype","setHours"],["Date","prototype","getMilliseconds"],["Date","prototype","setMilliseconds"],["Date","prototype","getMinutes"],["Date","prototype","setMinutes"],["Date","prototype","getMonth"],["Date","prototype","setMonth"],["Date","prototype","getSeconds"],["Date","prototype","setSeconds"],["Date","prototype","getTime"],["Date","prototype","setTime"],["Date","prototype","getTimezoneOffset"],["Date","prototype","getUTCDate"],["Date","prototype","setUTCDate"],["Date","prototype","getUTCDay"],["Date","prototype","getUTCFullYear"],["Date","prototype","setUTCFullYear"],["Date","prototype","getUTCHours"],["Date","prototype","setUTCHours"],["Date","prototype","getUTCMilliseconds"],["Date","prototype","setUTCMilliseconds"],["Date","prototype","getUTCMinutes"],["Date","prototype","setUTCMinutes"],["Date","prototype","getUTCMonth"],["Date","prototype","setUTCMonth"],["Date","prototype","getUTCSeconds"],["Date","prototype","setUTCSeconds"],["Date","prototype","valueOf"],["Date","prototype","getYear"],["Date","prototype","setYear"],["Date","prototype","toJSON"],["Date","prototype","toLocaleString"],["Date","prototype","toLocaleDateString"],["Date","prototype","toLocaleTimeString"],["Promise","prototype","constructor"],["Promise","prototype","then"],["Promise","prototype","catch"],["Promise","prototype","finally"],["RegExp","prototype","constructor"],["RegExp","prototype","exec"],["Error","prototype","constructor"],["Error","prototype","toString"],["EvalError","prototype","constructor"],["RangeError","prototype","constructor"],["ReferenceError","prototype","constructor"],["SyntaxError","prototype","constructor"],["TypeError","prototype","constructor"],["URIError","prototype","constructor"],["ArrayBuffer","prototype","constructor"],["Uint8Array","prototype","constructor"],["Int8Array","prototype","constructor"],["Uint16Array","prototype","constructor"],["Int16Array","prototype","constructor"],["Uint32Array","prototype","constructor"],["Int32Array","prototype","constructor"],["Float32Array","prototype","constructor"],["Float64Array","prototype","constructor"],["Uint8ClampedArray","prototype","constructor"],["BigUint64Array","prototype","constructor"],["BigInt64Array","prototype","constructor"],["DataView","prototype","constructor"],["Map","prototype","constructor"],["Map","prototype","get"],["Map","prototype","set"],["Map","prototype","has"],["Map","prototype","delete"],["Map","prototype","clear"],["Map","prototype","entries"],["Map","prototype","forEach"],["Map","prototype","keys"],["BigInt","prototype","constructor"],["BigInt","prototype","toLocaleString"],["BigInt","prototype","toString"],["BigInt","prototype","valueOf"],["Set","prototype","constructor"],["Set","prototype","has"],["Set","prototype","add"],["Set","prototype","delete"],["Set","prototype","clear"],["Set","prototype","entries"],["Set","prototype","forEach"],["WeakMap","prototype","constructor"],["WeakMap","prototype","delete"],["WeakMap","prototype","get"],["WeakMap","prototype","set"],["WeakMap","prototype","has"],["WeakSet","prototype","constructor"],["WeakSet","prototype","delete"],["WeakSet","prototype","has"],["WeakSet","prototype","add"],["WebGLVertexArrayObject","prototype","constructor"],["WebGLUniformLocation","prototype","constructor"],["WebGLTransformFeedback","prototype","constructor"],["WebGLTexture","prototype","constructor"],["WebGLSync","prototype","constructor"],["WebGLShader","prototype","constructor"],["WebGLSampler","prototype","constructor"],["WebGLRenderbuffer","prototype","constructor"],["WebGLQuery","prototype","constructor"],["WebGLProgram","prototype","constructor"],["WebGLFramebuffer","prototype","constructor"],["WebGLBuffer","prototype","constructor"],["SyncManager","prototype","register"],["SyncManager","prototype","getTags"],["SyncManager","prototype","constructor"],["PeriodicWave","prototype","constructor"],["Path2D","prototype","addPath"],["Path2D","prototype","closePath"],["Path2D","prototype","moveTo"],["Path2D","prototype","lineTo"],["Path2D","prototype","quadraticCurveTo"],["Path2D","prototype","bezierCurveTo"],["Path2D","prototype","arcTo"],["Path2D","prototype","rect"],["Path2D","prototype","arc"],["Path2D","prototype","ellipse"],["Path2D","prototype","constructor"],["MediaCapabilities","prototype","decodingInfo"],["MediaCapabilities","prototype","constructor"],["InputDeviceInfo","prototype","getCapabilities"],["InputDeviceInfo","prototype","constructor"],["IIRFilterNode","prototype","getFrequencyResponse"],["IIRFilterNode","prototype","constructor"],["IDBFactory","prototype","open"],["IDBFactory","prototype","deleteDatabase"],["IDBFactory","prototype","cmp"],["IDBFactory","prototype","databases"],["IDBFactory","prototype","constructor"],["Geolocation","prototype","getCurrentPosition"],["Geolocation","prototype","watchPosition"],["Geolocation","prototype","clearWatch"],["Geolocation","prototype","constructor"],["Crypto","prototype","getRandomValues"],["Crypto","prototype","constructor"],["ChannelSplitterNode","prototype","constructor"],["ChannelMergerNode","prototype","constructor"],["CanvasPattern","prototype","setTransform"],["CanvasPattern","prototype","constructor"],["CanvasGradient","prototype","addColorStop"],["CanvasGradient","prototype","constructor"],["XPathExpression","prototype","evaluate"],["XPathExpression","prototype","constructor"],["XPathEvaluator","prototype","createExpression"],["XPathEvaluator","prototype","createNSResolver"],["XPathEvaluator","prototype","evaluate"],["XPathEvaluator","prototype","constructor"],["XMLSerializer","prototype","serializeToString"],["XMLSerializer","prototype","constructor"],["XMLHttpRequestUpload","prototype","constructor"],["XMLDocument","prototype","constructor"],["Window","prototype","constructor"],["URLSearchParams","prototype","append"],["URLSearchParams","prototype","delete"],["URLSearchParams","prototype","get"],["URLSearchParams","prototype","getAll"],["URLSearchParams","prototype","has"],["URLSearchParams","prototype","set"],["URLSearchParams","prototype","sort"],["URLSearchParams","prototype","keys"],["URLSearchParams","prototype","values"],["URLSearchParams","prototype","forEach"],["URLSearchParams","prototype","toString"],["URLSearchParams","prototype","entries"],["URLSearchParams","prototype","constructor"],["StylePropertyMap","prototype","set"],["StylePropertyMap","prototype","append"],["StylePropertyMap","prototype","delete"],["StylePropertyMap","prototype","clear"],["StylePropertyMap","prototype","constructor"],["SVGUnitTypes","prototype","constructor"],["SVGTitleElement","prototype","constructor"],["SVGTextElement","prototype","constructor"],["SVGTSpanElement","prototype","constructor"],["SVGSwitchElement","prototype","constructor"],["SVGSetElement","prototype","constructor"],["SVGPathElement","prototype","constructor"],["SVGMetadataElement","prototype","constructor"],["SVGGElement","prototype","constructor"],["SVGFEFuncRElement","prototype","constructor"],["SVGFEFuncGElement","prototype","constructor"],["SVGFEFuncBElement","prototype","constructor"],["SVGFEFuncAElement","prototype","constructor"],["SVGDescElement","prototype","constructor"],["SVGDefsElement","prototype","constructor"],["SVGAnimateTransformElement","prototype","constructor"],["SVGAnimateMotionElement","prototype","constructor"],["SVGAnimateElement","prototype","constructor"],["ResizeObserver","prototype","observe"],["ResizeObserver","prototype","unobserve"],["ResizeObserver","prototype","disconnect"],["ResizeObserver","prototype","constructor"],["ReportingObserver","prototype","observe"],["ReportingObserver","prototype","disconnect"],["ReportingObserver","prototype","takeRecords"],["ReportingObserver","prototype","constructor"],["ReadableStreamDefaultReader","prototype","cancel"],["ReadableStreamDefaultReader","prototype","read"],["ReadableStreamDefaultReader","prototype","releaseLock"],["ReadableStreamDefaultReader","prototype","constructor"],["PerformancePaintTiming","prototype","constructor"],["PerformanceObserverEntryList","prototype","getEntries"],["PerformanceObserverEntryList","prototype","getEntriesByType"],["PerformanceObserverEntryList","prototype","getEntriesByName"],["PerformanceObserverEntryList","prototype","constructor"],["PerformanceObserver","prototype","observe"],["PerformanceObserver","prototype","disconnect"],["PerformanceObserver","prototype","takeRecords"],["PerformanceObserver","prototype","constructor"],["MutationObserver","prototype","observe"],["MutationObserver","prototype","disconnect"],["MutationObserver","prototype","takeRecords"],["MutationObserver","prototype","constructor"],["Location","prototype","constructor"],["Headers","prototype","append"],["Headers","prototype","delete"],["Headers","prototype","get"],["Headers","prototype","has"],["Headers","prototype","set"],["Headers","prototype","keys"],["Headers","prototype","values"],["Headers","prototype","forEach"],["Headers","prototype","entries"],["Headers","prototype","constructor"],["HTMLUnknownElement","prototype","constructor"],["HTMLSpanElement","prototype","constructor"],["HTMLShadowElement","prototype","getDistributedNodes"],["HTMLShadowElement","prototype","constructor"],["HTMLPictureElement","prototype","constructor"],["HTMLHeadElement","prototype","constructor"],["HTMLFormControlsCollection","prototype","namedItem"],["HTMLFormControlsCollection","prototype","constructor"],["HTMLDocument","prototype","constructor"],["Audio","prototype","constructor"],["HTMLAudioElement","prototype","constructor"],["FormData","prototype","append"],["FormData","prototype","delete"],["FormData","prototype","get"],["FormData","prototype","getAll"],["FormData","prototype","has"],["FormData","prototype","set"],["FormData","prototype","keys"],["FormData","prototype","values"],["FormData","prototype","forEach"],["FormData","prototype","entries"],["FormData","prototype","constructor"],["External","prototype","AddSearchProvider"],["External","prototype","IsSearchProviderInstalled"],["External","prototype","constructor"],["EventTarget","prototype","addEventListener"],["EventTarget","prototype","removeEventListener"],["EventTarget","prototype","dispatchEvent"],["EventTarget","prototype","constructor"],["DOMStringMap","prototype","constructor"],["DOMParser","prototype","parseFromString"],["DOMParser","prototype","constructor"],["DOMImplementation","prototype","createDocumentType"],["DOMImplementation","prototype","createDocument"],["DOMImplementation","prototype","createHTMLDocument"],["DOMImplementation","prototype","hasFeature"],["DOMImplementation","prototype","constructor"],["CustomElementRegistry","prototype","define"],["CustomElementRegistry","prototype","get"],["CustomElementRegistry","prototype","whenDefined"],["CustomElementRegistry","prototype","upgrade"],["CustomElementRegistry","prototype","constructor"],["Comment","prototype","constructor"],["CSSSupportsRule","prototype","constructor"],["CSSStyleValue","prototype","toString"],["CSSStyleValue","prototype","constructor"],["CSSNumericValue","prototype","add"],["CSSNumericValue","prototype","sub"],["CSSNumericValue","prototype","mul"],["CSSNumericValue","prototype","div"],["CSSNumericValue","prototype","min"],["CSSNumericValue","prototype","max"],["CSSNumericValue","prototype","equals"],["CSSNumericValue","prototype","to"],["CSSNumericValue","prototype","toSum"],["CSSNumericValue","prototype","type"],["CSSNumericValue","prototype","constructor"],["CSSImageValue","prototype","constructor"],["CSS","prototype","constructor"],["CDATASection","prototype","constructor"],["AnimationEffect","prototype","getTiming"],["AnimationEffect","prototype","getComputedTiming"],["AnimationEffect","prototype","updateTiming"],["AnimationEffect","prototype","constructor"],["WebKitMutationObserver","prototype","observe"],["WebKitMutationObserver","prototype","disconnect"],["WebKitMutationObserver","prototype","takeRecords"],["WebKitMutationObserver","prototype","constructor"],["SharedArrayBuffer","prototype","constructor"],["FinalizationRegistry","prototype","constructor"],["FinalizationRegistry","prototype","register"],["FinalizationRegistry","prototype","unregister"],["WeakRef","prototype","constructor"],["WeakRef","prototype","deref"],["FragmentDirective","prototype","constructor"],["ApplicationCache","prototype","constructor"],["ApplicationCacheErrorEvent","prototype","constructor"],["WakeLock","prototype","constructor"],["WakeLock","prototype","request"],["WakeLockSentinel","prototype","constructor"],["FeaturePolicy","prototype","allowsFeature"],["FeaturePolicy","prototype","features"],["FeaturePolicy","prototype","allowedFeatures"],["FeaturePolicy","prototype","getAllowlistForFeature"],["FeaturePolicy","prototype","constructor"],["TrustedHTML","prototype","toString"],["TrustedHTML","prototype","constructor"],["TrustedScript","prototype","toString"],["TrustedScript","prototype","constructor"],["TrustedScriptURL","prototype","toString"],["TrustedScriptURL","prototype","constructor"],["DocumentTimeline","prototype","constructor"],["XSLTProcessor","prototype","importStylesheet"],["XSLTProcessor","prototype","transformToFragment"],["XSLTProcessor","prototype","transformToDocument"],["XSLTProcessor","prototype","setParameter"],["XSLTProcessor","prototype","getParameter"],["XSLTProcessor","prototype","removeParameter"],["XSLTProcessor","prototype","clearParameters"],["XSLTProcessor","prototype","reset"],["XSLTProcessor","prototype","constructor"],["BackgroundFetchManager","prototype","fetch"],["BackgroundFetchManager","prototype","get"],["BackgroundFetchManager","prototype","getIds"],["BackgroundFetchManager","prototype","constructor"],["PaymentInstruments","prototype","delete"],["PaymentInstruments","prototype","get"],["PaymentInstruments","prototype","keys"],["PaymentInstruments","prototype","has"],["PaymentInstruments","prototype","set"],["PaymentInstruments","prototype","clear"],["PaymentInstruments","prototype","constructor"],["PaymentRequestUpdateEvent","prototype","updateWith"],["PaymentRequestUpdateEvent","prototype","constructor"],["PeriodicSyncManager","prototype","register"],["PeriodicSyncManager","prototype","getTags"],["PeriodicSyncManager","prototype","unregister"],["PeriodicSyncManager","prototype","constructor"],["Permissions","prototype","query"],["Permissions","prototype","constructor"],["PushManager","prototype","subscribe"],["PushManager","prototype","getSubscription"],["PushManager","prototype","permissionState"],["PushManager","prototype","constructor"],["Worklet","prototype","constructor"],["Worklet","prototype","addModule"],["AbsoluteOrientationSensor","prototype","constructor"],["Accelerometer","prototype","constructor"],["AudioWorklet","prototype","constructor"],["Cache","prototype","constructor"],["Cache","prototype","match"],["Cache","prototype","matchAll"],["Cache","prototype","add"],["Cache","prototype","addAll"],["Cache","prototype","put"],["Cache","prototype","delete"],["Cache","prototype","keys"],["CacheStorage","prototype","constructor"],["CacheStorage","prototype","match"],["CacheStorage","prototype","has"],["CacheStorage","prototype","open"],["CacheStorage","prototype","delete"],["CacheStorage","prototype","keys"],["Clipboard","prototype","constructor"],["Clipboard","prototype","read"],["Clipboard","prototype","readText"],["Clipboard","prototype","write"],["Clipboard","prototype","writeText"],["Credential","prototype","constructor"],["CredentialsContainer","prototype","constructor"],["CredentialsContainer","prototype","get"],["CredentialsContainer","prototype","store"],["CredentialsContainer","prototype","create"],["CredentialsContainer","prototype","preventSilentAccess"],["CryptoKey","prototype","constructor"],["DeviceMotionEvent","prototype","constructor"],["DeviceMotionEventAcceleration","prototype","constructor"],["DeviceMotionEventRotationRate","prototype","constructor"],["DeviceOrientationEvent","prototype","constructor"],["FederatedCredential","prototype","constructor"],["Gyroscope","prototype","constructor"],["Keyboard","prototype","constructor"],["Keyboard","prototype","lock"],["Keyboard","prototype","unlock"],["Keyboard","prototype","getLayoutMap"],["KeyboardLayoutMap","prototype","entries"],["KeyboardLayoutMap","prototype","constructor"],["LinearAccelerationSensor","prototype","constructor"],["Lock","prototype","constructor"],["LockManager","prototype","constructor"],["LockManager","prototype","request"],["LockManager","prototype","query"],["MediaDeviceInfo","prototype","constructor"],["MediaDevices","prototype","constructor"],["MediaKeyMessageEvent","prototype","constructor"],["MediaKeys","prototype","constructor"],["MediaKeys","prototype","createSession"],["MediaKeys","prototype","setServerCertificate"],["MediaKeys","prototype","getStatusForPolicy"],["MediaKeySession","prototype","constructor"],["MediaKeyStatusMap","prototype","entries"],["MediaKeyStatusMap","prototype","constructor"],["MediaKeySystemAccess","prototype","constructor"],["MIDIAccess","prototype","constructor"],["MIDIConnectionEvent","prototype","constructor"],["MIDIInput","prototype","constructor"],["MIDIInputMap","prototype","entries"],["MIDIInputMap","prototype","constructor"],["MIDIMessageEvent","prototype","constructor"],["MIDIOutput","prototype","constructor"],["MIDIOutput","prototype","send"],["MIDIOutputMap","prototype","entries"],["MIDIOutputMap","prototype","constructor"],["MIDIPort","prototype","constructor"],["NavigationPreloadManager","prototype","constructor"],["NavigationPreloadManager","prototype","enable"],["NavigationPreloadManager","prototype","disable"],["NavigationPreloadManager","prototype","setHeaderValue"],["NavigationPreloadManager","prototype","getState"],["OrientationSensor","prototype","constructor"],["PasswordCredential","prototype","constructor"],["RelativeOrientationSensor","prototype","constructor"],["RTCIceTransport","prototype","constructor"],["Sensor","prototype","constructor"],["SensorErrorEvent","prototype","constructor"],["ServiceWorker","prototype","constructor"],["ServiceWorkerContainer","prototype","constructor"],["ServiceWorkerRegistration","prototype","constructor"],["StorageManager","prototype","constructor"],["StorageManager","prototype","persisted"],["StorageManager","prototype","persist"],["StorageManager","prototype","estimate"],["SubtleCrypto","prototype","constructor"],["SubtleCrypto","prototype","encrypt"],["SubtleCrypto","prototype","decrypt"],["SubtleCrypto","prototype","sign"],["SubtleCrypto","prototype","verify"],["SubtleCrypto","prototype","digest"],["SubtleCrypto","prototype","generateKey"],["SubtleCrypto","prototype","deriveKey"],["SubtleCrypto","prototype","deriveBits"],["SubtleCrypto","prototype","importKey"],["SubtleCrypto","prototype","exportKey"],["SubtleCrypto","prototype","wrapKey"],["SubtleCrypto","prototype","unwrapKey"],["XRDOMOverlayState","prototype","constructor"],["XRLayer","prototype","constructor"],["BarcodeDetector","prototype","constructor"],["BarcodeDetector","prototype","detect"],["PaymentMethodChangeEvent","prototype","constructor"],["PaymentAddress","prototype","constructor"],["PaymentRequest","prototype","constructor"],["PaymentResponse","prototype","constructor"],["Presentation","prototype","constructor"],["PresentationAvailability","prototype","constructor"],["PresentationConnection","prototype","constructor"],["PresentationConnectionAvailableEvent","prototype","constructor"],["PresentationConnectionCloseEvent","prototype","constructor"],["PresentationConnectionList","prototype","constructor"],["PresentationReceiver","prototype","constructor"],["PresentationRequest","prototype","constructor"],["AuthenticatorAssertionResponse","prototype","constructor"],["AuthenticatorAttestationResponse","prototype","constructor"],["AuthenticatorResponse","prototype","constructor"],["PublicKeyCredential","prototype","constructor"],["USB","prototype","constructor"],["USBAlternateInterface","prototype","constructor"],["USBConfiguration","prototype","constructor"],["USBConnectionEvent","prototype","constructor"],["USBDevice","prototype","constructor"],["USBEndpoint","prototype","constructor"],["USBInterface","prototype","constructor"],["USBInTransferResult","prototype","constructor"],["USBIsochronousInTransferPacket","prototype","constructor"],["USBIsochronousInTransferResult","prototype","constructor"],["USBIsochronousOutTransferPacket","prototype","constructor"],["USBIsochronousOutTransferResult","prototype","constructor"],["USBOutTransferResult","prototype","constructor"],["XRBoundedReferenceSpace","prototype","constructor"],["XRFrame","prototype","constructor"],["XRInputSource","prototype","constructor"],["XRInputSourceArray","prototype","entries"],["XRInputSourceArray","prototype","forEach"],["XRInputSourceArray","prototype","keys"],["XRInputSourceArray","prototype","values"],["XRInputSourceArray","prototype","constructor"],["XRInputSourceEvent","prototype","constructor"],["XRInputSourcesChangeEvent","prototype","constructor"],["XRPose","prototype","constructor"],["XRReferenceSpace","prototype","constructor"],["XRReferenceSpaceEvent","prototype","constructor"],["XRRenderState","prototype","constructor"],["XRRigidTransform","prototype","constructor"],["XRSession","prototype","constructor"],["XRSessionEvent","prototype","constructor"],["XRSpace","prototype","constructor"],["XRSystem","prototype","constructor"],["XRView","prototype","constructor"],["XRViewerPose","prototype","constructor"],["XRViewport","prototype","constructor"],["XRWebGLLayer","prototype","constructor"],["XRHitTestResult","prototype","constructor"],["XRHitTestResult","prototype","getPose"],["XRHitTestSource","prototype","constructor"],["XRHitTestSource","prototype","cancel"],["XRRay","prototype","constructor"],["XRTransientInputHitTestResult","prototype","constructor"],["XRTransientInputHitTestSource","prototype","constructor"],["XRTransientInputHitTestSource","prototype","cancel"],["assert","prototype","constructor"],["assertNotReached","prototype","constructor"],["assertInstanceof","prototype","constructor"],["rgbComponentToHex","prototype","constructor"],["colorArrayToHex","prototype","constructor"],["LocalNTP","prototype","constructor"],["$","prototype","constructor"],["getChromeUILanguage","prototype","constructor"]]
for (var i = 0; i < check_list.length; i++) {
var nodes = check_list[i];
var ob = window;
try {
for (var j = 0; j < nodes.length; j++) {
ob = ob[nodes[j]];
}
} catch(e) {
continue;
}
var sig = ob.toString().substring(0, 20);
try {
ob in 0;
} catch(e) {
if (!e.stack.includes(sig)) {
var msg = 'DETECTED: ' + nodes.join('.');
add_detection(msg);
}
}
}
if (!hits) {
var li = document.createElement("LI");
li.append(document.createTextNode('No hook detected on (Array.prototype.join). Either you\'ve hidden it well or it\'s not hooked!'));
li.classList.add('pass');
ul.appendChild(li);
}
}, 200);
</script>
<style>
body {
background-color: black;
}
.pass {
color: green
}
.fail {
color: red
}
</style>
</head>
<body>
<ul id='detections'></ul>
</body>
</html>