puppeteer-extra
puppeteer-extra copied to clipboard
Update index.js for bypass creepjs proxy detection
Update index.js for bypass creepjs proxy detection
@cg10036 thanks! does this have negative side effects elsewhere?
@berstend No! This code just change stack trace, so it will have no negative effets maybe.
// before bypass
TypeError: Function.prototype.toString requires that 'this' be a Function
at Function.toString (<anonymous>)
at newHandler.<computed> [as apply] (eval at <anonymous> (:4:65), <anonymous>:18:30)
at newHandler.<computed> [as apply] (eval at <anonymous> (:4:65), <anonymous>:18:30)
at newHandler.<computed> [as apply] (eval at <anonymous> (:4:65), <anonymous>:18:30)
at newHandler.<computed> [as apply] (eval at <anonymous> (:4:65), <anonymous>:18:30)
// after bypass
TypeError: Function.prototype.toString requires that 'this' be a Function
at Function.toString (<anonymous>)
at you (https://abrahamjuliot.github.io/creepjs/creep.js:1685:50)
at cant (https://abrahamjuliot.github.io/creepjs/creep.js:1686:24)
at hide (https://abrahamjuliot.github.io/creepjs/creep.js:1687:24)
at getNewObjectToStringTypeErrorLie (https://abrahamjuliot.github.io/creepjs/creep.js:1688:5)
at https://abrahamjuliot.github.io/creepjs/creep.js:5622:8
at getHeadlessFeatures (https://abrahamjuliot.github.io/creepjs/creep.js:5633:8)
at async Promise.all (index 0)
at async fingerprint (https://abrahamjuliot.github.io/creepjs/creep.js:11412:8)
at async https://abrahamjuliot.github.io/creepjs/creep.js:11690:7
CreepJS lies
// before bypass
// lies (207)
Function.toString:
- failed object toString error <- bypassed this
- failed at too much recursion error
- failed at too much recursion __proto__ error
- failed at chain cycle __proto__ error
- failed at reflect set proto
And More
// after bypass
// lies (22)
Function.toString:
- failed at too much recursion error
- failed at too much recursion __proto__ error
- failed at chain cycle __proto__ error
- failed at reflect set proto
And more
I like it 😄 quite an elegant solution 👍
Will merge it in & release it after the weekend, currently having some Github CI issues
Can we please merge this ?
Can we please merge this?
@berstend Can we merge this?
Doesn't seem to work anymore.
This does not seem to work anymore - does anybody know of another walkaround to this issue? maybe @cg10036 ?
Does not work anymore, closing pr