Example #1
0
        public static bool IsValid(string string_0, string string_1, string string_2)
        {
            bool   flag;
            string str  = "";
            string str1 = Regedit.Is64or32System();

            if (str1 == "64")
            {
                str = string.Concat(string_2, ",", Regedit.GetSysManagementSerialNumber64(string_2));
            }
            else if (str1 == "32")
            {
                str = string.Concat(string_2, ",", Regedit.GetSysManagementSerialNumber(string_2));
            }
            flag = (!string_1.Equals(Regedit.EncryptPassword(string.Concat(string_0, Regedit.EncryptTextNet(str)), "md5")) ? false : true);
            return(flag);
        }
Example #2
0
        public static bool IsValidEx(string string_0, string string_1, string string_2)
        {
            bool flag;
            ManagementObjectCollection instances = (new ManagementClass("Win32_NetworkAdapterConfiguration")).GetInstances();
            bool flag1 = false;

            foreach (ManagementObject instance in instances)
            {
                if (!(bool)instance["IPEnabled"] || !string_2.Equals(Regedit.EncryptPassword(string.Concat(string_0, instance["MacAddress"].ToString().Trim()), "md5")))
                {
                    continue;
                }
                flag = true;
                return(flag);
            }
            flag = (string_1 == "http://www.linjon.cn" ? flag1 : false);
            return(flag);
        }