Untitled
unknown
plain_text
a year ago
4.5 kB
6
Indexable
Never
int WithScreen = 1280; int HightScreen = 720; dynamic o = JObject.Parse("{}"); jsonObj["extensions"]["settings"] = o; jsonObj["gologin"]["name"] = username; jsonObj["gologin"]["screenWidth"] = WithScreen; jsonObj["gologin"]["screenHeight"] = HightScreen; jsonObj["gologin"]["startupUrl"] = startUpUrl; jsonObj["gologin"]["startup_urls"][0] = startUpUrl; if (string.IsNullOrEmpty(timezone)) timezone = "Asia/Saigon"; jsonObj["gologin"]["timezone"]["id"] = timezone.Spintext();//"Asia/Saigon"; if (string.IsNullOrEmpty(useragent)) useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.4896.88 Safari/537.36"; jsonObj["gologin"]["userAgent"] = useragent;// string gpu = listGPU.GetRandom(); jsonObj["gologin"]["webGl"]["renderer"] = gpu;//"ANGLE (Intel, Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0, D3D11)"; jsonObj["gologin"]["webgl"]["metadata"]["renderer"] = gpu; //"ANGLE (Intel, Intel(R) HD Graphics 520 Direct3D11 vs_5_0 ps_5_0, D3D11-20.19.15.4424)"; if (WebGL == "Noise") { double NoiseWebGL = Math.Round(randomDouble(r, 0.001, 9.999), 3); jsonObj["gologin"]["webglNoiceEnable"] = true; jsonObj["gologin"]["webglNoiseValue"] = NoiseWebGL; jsonObj["gologin"]["webgl_noice_enable"] = true; jsonObj["gologin"]["webgl_noise_enable"] = true; jsonObj["gologin"]["webgl_noise_value"] = NoiseWebGL; } else { double NoiseWebGL = Math.Round(randomDouble(r, 0.001, 9.999), 3); jsonObj["gologin"]["webglNoiceEnable"] = false; jsonObj["gologin"]["webgl_noice_enable"] = false; jsonObj["gologin"]["webgl_noise_enable"] = false; jsonObj["gologin"]["webgl_noise_value"] = NoiseWebGL; } if (Canvas == "Noise") { double canvasNoise = Math.Round(randomDouble(r, 0.00000001, 0.99999999), 8); jsonObj["gologin"]["canvasMode"] = "noise"; jsonObj["gologin"]["canvasNoise"] = canvasNoise; } else if (Canvas == "Off") { jsonObj["gologin"]["canvasMode"] = "off"; } else { jsonObj["gologin"]["canvasMode"] = "block"; } if (Audio == "Noise") { double noiseValue = Math.Round(randomDouble(r, 1.000000000001, 3.999999999999), 12); jsonObj["gologin"]["audioContext"]["enable"] = true; jsonObj["gologin"]["audioContext"]["noiseValue"] = noiseValue; } else { jsonObj["gologin"]["audioContext"]["enable"] = false; } if (ClientRect == "Noise") { double getClientRectsNoice = Math.Round(randomDouble(r, 1.00001, 9.99999), 5); jsonObj["gologin"]["client_rects_noise_enable"] = true; jsonObj["gologin"]["getClientRectsNoice"] = getClientRectsNoice; jsonObj["gologin"]["get_client_rects_noise"] = getClientRectsNoice; } else { jsonObj["gologin"]["client_rects_noise_enable"] = false; } List<string> listProxy = proxyUrl.GetAllNode(":"); if (listProxy.Count == 4) { string User = listProxy[2]; string Pass = listProxy[3]; jsonObj["gologin"]["proxy"]["username"] = User; jsonObj["gologin"]["proxy"]["password"] = Pass; } else { jsonObj["gologin"]["proxy"]["username"] = ""; jsonObj["gologin"]["proxy"]["password"] = ""; }