4 ms·
incidentally part of my anti fingerprinting script looks like this let UNMASKED_RENDERER_WEBGL = ["ANGLE (AMD Radeon HD 7900 Series Direct3D11 vs_5_0 ps_5_
by rasz 6y ago
incidentally part of my anti fingerprinting script looks like this
let UNMASKED_RENDERER_WEBGL = ["ANGLE (AMD Radeon HD 7900 Series Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (Intel(R) HD Graphics 4600 Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (Intel(R) HD Graphics 520 Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (Intel(R) HD Graphics 530 Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (Intel(R) HD Graphics Family Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (NVIDIA GeForce GTX 960 Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (NVIDIA GeForce GTX 1070 Direct3D11 vs_5_0 ps_5_0)",
"ANGLE (NVIDIA GeForce GTX 760 Direct3D11 vs_5_0 ps_5_0)"]
those were the most popular desktop GPUs according to Steam a year or two ago.
- x775 6y agoWould you be willing to share this script?
- stevehawk 6y agonice try NSA
- gruez 6y agoDon't bother. It's hard to do it correctly. If you look through the snippets (or the MDN docs[1]), the value is retrieved using the getParameter() function. You might be tempted to override the function by doing something like gl.getParameter = () => "test" but that's easily detectable. If you run gl.getParameter.toString() You get back "() => "test"" whereas the original function you get back "function getParameter() { [native code] }" In general, don't try to fix fingerprinting via content scripts[2]. It's very much detectable. Your best bet is a browser that handles it natively. [1] https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug... [2] https://palant.info/2020/12/10/how-anti-fingerprinting-extensions-tend-to-make-fingerprinting-easier/ https://palant.info/2020/12/10/how-anti-fingerprinting-exten...
- rasz 6y agogl.getParameter.toString() = () => 'function getParameter() { [native code] }'
- gruez 6y ago-> gl.getParameter.toString.toString() <- "() => 'function getParameter() { [native code] }'" Not to mention the iframe trick mentioned in palant's article.
- rasz 6y agois that Firefox? in Chrome I get gl.getParameter.toString() = () => 'function getParameter() { [native code] }' gl.getParameter.toString() "function getParameter() { [native code] }" gl.getParameter.toString().toString() "function getParameter() { [native code] }" gl.getParameter.toString().toString().toString() "function getParameter() { [native code] }" iframes, worker, sharedworker, serviceWorker are all covered. Good luck timing the difference.
- deathanatos 6y agoYou're running gl.getParameter.toString().toString() what the comment you're replying to is trying to tell you to run is: gl.getParameter.toString.toString() Call toString on the toString fuction, not on its result.
- rasz 6y agoGood point. Rewriting according to https://adtechmadness.wordpress.com/2019/03/23/javascript-tampering-detection-and-stealth/ https://adtechmadness.wordpress.com/2019/03/23/javascript-ta... now
- deleted 6y ago[deleted]
- HWR_14 6y ago
- novok 6y agoDo you present a set of 9 GPUs or pick one at random?
- rasz 6y agoUNMASKED_RENDERER_WEBGL[Math.floor(Math.random()*UNMASKED_RENDERER_WEBGL.length)]
- nine_k 6y agoWon't a custom script make you special and thus very easy to precisely fingerprint? I can imagine that having several typical configs and switching between them at random would help blend in.
- gruez 6y ago>I can imagine that having several typical configs and switching between them at random would help blend in. You have to be careful with that too. An anti-anti-fingerprinting implementation can record the values and compare them across visits to see whether they stay the same. If they change every few months that's reasonable (eg. changing hardware), but if they change every day or every week there's most certainly spoofing involved.
- therouwboat 6y agoAnti-anti-fingerprinting? :/ I feel like going there and telling them to stop following me around.
- Gravyness 6y agoYou can't do that because of the anti-anti-anti-fingerprinting, I know this because of reasons
- xsmasher 6y agoDoes it matter if they know you're spoofing, as long as it prevents them from linking two separate sessions together?
- gruez 6y agoyou'll run into this problem: https://xkcd.com/1105/ https://xkcd.com/1105/
- nine_k 6y agoIt should change every few requests. The point is not to conceal spoofing, but to foil attempts to fingerprint. Maybe an explicit sign of spoofing is even better, it sends a message in a gentle way. Unspoofing on the server side, if at all possible, would likely be too expensive for whatever gain it might bring.