Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="str">MD5cdkey string</param>
        /// <returns></returns>
        public static void IsCDKeyValid(CDKeyServer server, UDPPacket packet, Dictionary <string, string> recv)
        {
            if (DBQuery.IsCDKeyValidate(recv["skey"]))
            {
                string reply = string.Format(@"\uok\\cd\{0}\skey\{1}", recv["resp"].Substring(0, 32), recv["skey"]);

                server.Send(packet, Enctypex.XorEncoding(reply, 0));
            }
            else
            {
                LogWriter.Log.Write(LogLevel.Debug, "Incomplete or Invalid CDKey Packet Received: {0}", recv);
                //TODO cdkey invalid response
            }
        }
Esempio n. 2
0
 public static void InvalidCDKeyRequest(CDKeyServer server, UDPPacket packet, Dictionary <string, string> recv)
 {
     LogWriter.Log.Write(LogLevel.Debug, "[CDKey] recieved Incomplete or Invalid  data : {0}", recv);
 }