fix: anti-detection

This commit is contained in:
Xmader 2020-11-08 15:48:54 -05:00
parent 8da2e7a1c8
commit 4b2d721661
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -11,8 +11,12 @@ export const makeNative = (() => {
return function () {
if (l.has(this)) {
const _fn = l.get(this) || parseInt // "function () {\n [native code]\n}"
if (l.has(_fn)) { // nested
return _fn.toString()
} else {
return _toString.call(_fn) as string
}
}
return _toString.call(this) as string
}
}, true)