From 3d00a4b0ba669c54b89164cf2da2951abf9283cb Mon Sep 17 00:00:00 2001 From: rjindael Date: Mon, 31 Jul 2023 05:01:42 -0700 Subject: [PATCH] feat: remove license xor obf --- Kiseki.Launcher/Web.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Kiseki.Launcher/Web.cs b/Kiseki.Launcher/Web.cs index 9a2c55a..37e082e 100644 --- a/Kiseki.Launcher/Web.cs +++ b/Kiseki.Launcher/Web.cs @@ -32,18 +32,11 @@ namespace Kiseki.Launcher // the "license" is actually just headers required to access the website. // this can be cloudflare zero-trust headers (like what Kiseki does), or however - // else you'd like to do auth-walls. either way; it's just a JSON document that - // has each byte XORed by 55 (for some basic obfuscation). + // else you'd like to do auth-walls. either way; it's just a JSON document try { - string json = ""; - for (int i = 0; i < license.Length; i++) - { - json += (char)(license[i] ^ 55); - } - - var headers = JsonSerializer.Deserialize>(json)!; + var headers = JsonSerializer.Deserialize>(license)!; for (int i = 0; i < headers.Count; i++) { HttpClient.DefaultRequestHeaders.Add(headers.ElementAt(i).Key, headers.ElementAt(i).Value);