Пример #1
0
 public void GenerateSecretKey(string publicKey)
 {
     _crypto = new RC4(_keyExchange.GetSharedKey(publicKey));
     SendToServer(_crypto.Parse(HMessage.Construct(Headers.ClientVariables, 401, Headers.Variables.ClientVariables_1, Headers.Variables.ClientVariables_2)));
     SendToServer(_crypto.Parse(HMessage.Construct(Headers.MachineID, GenMid(), "WIN/30,0,0,154")));
     SendToServer(_crypto.Parse(HMessage.Construct(Headers.SSOTicket, _sso, _rand.Next(400, 4600))));
     SendToServer(_crypto.Parse(HMessage.Construct(Headers.RequestUserData)));
     IsConnected = true;
     _main.LogSucess($"[BOT {Id}] Connected");
 }