feat: remove license xor obf
This commit is contained in:
parent
9f75a83c6b
commit
3d00a4b0ba
|
|
@ -32,18 +32,11 @@ namespace Kiseki.Launcher
|
||||||
|
|
||||||
// the "license" is actually just headers required to access the website.
|
// the "license" is actually just headers required to access the website.
|
||||||
// this can be cloudflare zero-trust headers (like what Kiseki does), or however
|
// 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
|
// else you'd like to do auth-walls. either way; it's just a JSON document
|
||||||
// has each byte XORed by 55 (for some basic obfuscation).
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string json = "";
|
var headers = JsonSerializer.Deserialize<Dictionary<string, string>>(license)!;
|
||||||
for (int i = 0; i < license.Length; i++)
|
|
||||||
{
|
|
||||||
json += (char)(license[i] ^ 55);
|
|
||||||
}
|
|
||||||
|
|
||||||
var headers = JsonSerializer.Deserialize<Dictionary<string, string>>(json)!;
|
|
||||||
for (int i = 0; i < headers.Count; i++)
|
for (int i = 0; i < headers.Count; i++)
|
||||||
{
|
{
|
||||||
HttpClient.DefaultRequestHeaders.Add(headers.ElementAt(i).Key, headers.ElementAt(i).Value);
|
HttpClient.DefaultRequestHeaders.Add(headers.ElementAt(i).Key, headers.ElementAt(i).Value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue