Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can make gpu spoof #573

Open
thanhlouis opened this issue Oct 17, 2023 · 2 comments
Open

Can make gpu spoof #573

thanhlouis opened this issue Oct 17, 2023 · 2 comments

Comments

@thanhlouis
Copy link

funcjs['getGpu'] = function() { var text = ''; var canvas = document.createElement("canvas"); var gl = canvas.getContext("experimental-webgl") || canvas.getContext("webgl"); var ext = gl.getExtension("WEBGL_debug_renderer_info"); if (gl && ext) { text = gl.getParameter(ext.UNMASKED_VENDOR_WEBGL) + '~' + gl.getParameter(ext.UNMASKED_RENDERER_WEBGL); } return text; }

An website use this for check multi account, can you make an feature to change name of gpu ?

@sereneblue
Copy link
Owner

Hi @thanhlouis,

This is something that has been requested a few times. I will likely add support for this in v0.30.0.

@s-b-repo
Copy link

funcjs['getGpu'] = function() {
var text = '';
var canvas = document.createElement("canvas");
var gl = canvas.getContext("experimental-webgl") || canvas.getContext("webgl");

// Define your custom GPU vendor and renderer here
const spoofedVendor = "NVIDIA Corporation";
const spoofedRenderer = "NVIDIA GeForce GTX 1080";

var ext = gl.getExtension("WEBGL_debug_renderer_info");
if (gl && ext) {
    // Replace the actual GPU details with spoofed ones
    text = spoofedVendor + '~' + spoofedRenderer;
}
return text;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants