Esempio n. 1
0
 public Class11()
 {
     if (!Directory.Exists(Environment.CurrentDirectory + "\\data\\plugins"))
     {
         Directory.CreateDirectory(Environment.CurrentDirectory + "\\data\\plugins");
     }
     this.gclass3_0 = new GClass3();
     this.method_0();
 }
Esempio n. 2
0
    // Token: 0x060000FA RID: 250 RVA: 0x0000E1E4 File Offset: 0x0000C3E4
    public static void smethod_1(Bitmap bitmap_0, int int_0, int int_1, string string_0)
    {
        GClass3.smethod_0(Class185.smethod_0(537704068), Class185.smethod_0(537704074));
        int     width   = bitmap_0.Width;
        int     height  = bitmap_0.Height;
        int     num     = 1;
        JObject jobject = new JObject();

        for (int i = 0; i < height; i += height / int_0)
        {
            for (int j = 0; j < width; j += width / int_1)
            {
                Class20.smethod_3(Class20.smethod_0(j, i, width / int_1, height / int_0, bitmap_0), num, jobject, string_0);
                num++;
            }
        }
        while (jobject.Count != num - 1)
        {
            Thread.Sleep(200);
        }
        GClass3.smethod_0(Class185.smethod_0(537704103), Class185.smethod_0(537704074));
        Console.WriteLine(jobject.ToString());
    }
Esempio n. 3
0
    // Token: 0x060000FA RID: 250 RVA: 0x0000D1BC File Offset: 0x0000B3BC
    public static void smethod_1(Bitmap bitmap_0, int int_0, int int_1, string string_0)
    {
        GClass3.smethod_0("Starting captcha OCR service", "OCR");
        int     width   = bitmap_0.Width;
        int     height  = bitmap_0.Height;
        int     num     = 1;
        JObject jobject = new JObject();

        for (int i = 0; i < height; i += height / int_0)
        {
            for (int j = 0; j < width; j += width / int_1)
            {
                Class20.smethod_3(Class20.smethod_0(j, i, width / int_1, height / int_0, bitmap_0), num, jobject, string_0);
                num++;
            }
        }
        while (jobject.Count != num - 1)
        {
            Thread.Sleep(200);
        }
        GClass3.smethod_0("OCR completed, attempting to solve captcha", "OCR");
        Console.WriteLine(jobject.ToString());
    }
Esempio n. 4
0
        private void PrepareUpdateIfNecessary(bool directDownload)
        {
            if (!(this.gclass30_0 is GClass32) || directDownload)
            {
                return;
            }
            GClass32 gclass300 = (GClass32)this.gclass30_0;

            if (!gclass300.Boolean_3 || GClass3.smethod_3((GClass30)gclass300.Updates[0]))
            {
                return;
            }
            bool flag = false;

            try
            {
                GClass33 gclass33 = gclass300.Updates.Last <GClass33>((Func <GClass33, bool>)(x => x.GEnum2_0 == GEnum2.const_2));
                if (!Directory.Exists(this.UpdatePath))
                {
                    Directory.CreateDirectory(this.UpdatePath);
                }
                else if (this.UpdateIsInstalled() && System.IO.File.Exists(this.UpdateVersionFilePath))
                {
                    flag = System.IO.File.ReadAllText(this.UpdateVersionFilePath) == gclass33.Version;
                }
                if (flag || directDownload)
                {
                    return;
                }
                gclass33.method_3(this.UpdatePath, false);
                FileSystem.RenameFile(Path.Combine(this.UpdatePath, "game.cxi"), "00000000.app");
                System.IO.File.WriteAllText(this.UpdateVersionFilePath, gclass33.Version);
            }
            catch
            {
            }
        }
Esempio n. 5
0
 // Token: 0x06000359 RID: 857 RVA: 0x00013F3C File Offset: 0x0001213C
 private void method_1(bool bool_0)
 {
     checked
     {
         if (bool_0)
         {
             int num = 0;
             do
             {
                 int num2 = num * 1000 + this.random_0.Next(0, 999);
                 num2 = num2 * 10 + GClass3.smethod_0(num2);
                 this.list_0.Add(num2.ToString("00000000"));
                 num++;
             }while (num <= 9999);
             return;
         }
         int num3 = 0;
         do
         {
             this.list_0.Add((num3 * 10000 + this.random_0.Next(0, 9999)).ToString("00000000"));
             num3++;
         }while (num3 <= 9999);
     }
 }
Esempio n. 6
0
    // Token: 0x060002C0 RID: 704 RVA: 0x00019684 File Offset: 0x00017884
    public bool method_0(object object_0, X509Certificate x509Certificate_0, X509Chain x509Chain_0, SslPolicyErrors sslPolicyErrors_0)
    {
        string host           = ((HttpWebRequest)object_0).Host;
        string certHashString = x509Certificate_0.GetCertHashString();

        if (Debugger.IsAttached)
        {
            return(true);
        }
        if (Class173.string_2.ToUpper().Contains(certHashString.ToUpper()))
        {
            return(true);
        }
        if (this.bool_0)
        {
            return(x509Certificate_0.Issuer.Contains(Class185.smethod_0(537713911)) || x509Certificate_0.Issuer.Contains(Class185.smethod_0(537713672)));
        }
        if (host.Contains(Class185.smethod_0(537692180)))
        {
            return(true);
        }
        GClass3.smethod_0(certHashString, Class185.smethod_0(537713701));
        return(host.Replace(Class185.smethod_0(537700393), string.Empty) == Class185.smethod_0(537713759) && x509Certificate_0.Issuer == Class185.smethod_0(537713784));
    }
Esempio n. 7
0
 // Token: 0x0600035A RID: 858 RVA: 0x00013FE0 File Offset: 0x000121E0
 private void method_2(string string_0, bool bool_0)
 {
     checked
     {
         if (bool_0)
         {
             int num = 0;
             do
             {
                 int num2 = (int)Math.Round(unchecked (Conversions.ToDouble(string_0) * 1000.0 + (double)num));
                 num2 = num2 * 10 + GClass3.smethod_0(Conversions.ToInteger(num2.ToString("0000000")));
                 this.list_0.Add(Conversions.ToString(num2));
                 num++;
             }while (num <= 999);
             return;
         }
         int num3 = 0;
         do
         {
             this.list_0.Add((unchecked (Conversions.ToDouble(string_0) * 10000.0 + (double)num3)).ToString("00000000"));
             num3++;
         }while (num3 <= 9999);
     }
 }
Esempio n. 8
0
    // Token: 0x060002C0 RID: 704 RVA: 0x00017148 File Offset: 0x00015348
    public bool method_0(object object_0, X509Certificate x509Certificate_0, X509Chain x509Chain_0, SslPolicyErrors sslPolicyErrors_0)
    {
        string host           = ((HttpWebRequest)object_0).Host;
        string certHashString = x509Certificate_0.GetCertHashString();

        if (Debugger.IsAttached)
        {
            return(true);
        }
        if (Class168.string_2.ToUpper().Contains(certHashString.ToUpper()))
        {
            return(true);
        }
        if (this.bool_0)
        {
            return(x509Certificate_0.Issuer.Contains("Let's Encrypt Authority X3") || x509Certificate_0.Issuer.Contains("DigiCert SHA2 High Assurance Server CA"));
        }
        if (host.Contains("supreme"))
        {
            return(true);
        }
        GClass3.smethod_0(certHashString, "SSL");
        return(host.Replace("www.", string.Empty) == "supremenewyork.com" && x509Certificate_0.Issuer == "CN=GlobalSign CloudSSL CA - SHA256 - G3, O=GlobalSign nv-sa, C=BE");
    }
Esempio n. 9
0
        public void testGClass3a()
        {
            object x = new GClass3 <MyClass, MyClass2>().NewT1();

            AssertTrue(x is MyClass);
        }
Esempio n. 10
0
 // Token: 0x06000135 RID: 309 RVA: 0x000036E5 File Offset: 0x000018E5
 public static void smethod_2(object sender, ExceptionEventArgs e)
 {
     GClass3.smethod_0(e.ErrorException.Message, "Webview Error");
 }
Esempio n. 11
0
 // Token: 0x06000151 RID: 337 RVA: 0x00002B29 File Offset: 0x00000D29
 public GClass10(GClass3 gclass3_1)
 {
     this.gclass3_0 = gclass3_1;
 }
Esempio n. 12
0
    // Token: 0x06000047 RID: 71 RVA: 0x00008FDC File Offset: 0x000071DC
    public void method_4(string string_3, string string_4, bool bool_2, bool bool_3)
    {
        if (Class4.Class7.callSite_6 == null)
        {
            Class4.Class7.callSite_6 = CallSite <Func <CallSite, object, bool> > .Create(Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(Class4), new CSharpArgumentInfo[]
            {
                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
            }));
        }
        Func <CallSite, object, bool> target = Class4.Class7.callSite_6.Target;
        CallSite callSite_ = Class4.Class7.callSite_6;
        bool     flag;
        object   obj;

        if (flag = GForm1.dictionary_0.ContainsKey((int)this.jtoken_1[Class185.smethod_0(537703519)]))
        {
            if (Class4.Class7.callSite_1 == null)
            {
                Class4.Class7.callSite_1 = CallSite <Func <CallSite, bool, object, object> > .Create(Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(Class4), new CSharpArgumentInfo[]
                {
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
                }));
            }
            Func <CallSite, bool, object, object> target2 = Class4.Class7.callSite_1.Target;
            CallSite callSite_2 = Class4.Class7.callSite_1;
            bool     arg        = flag;
            if (Class4.Class7.callSite_0 == null)
            {
                Class4.Class7.callSite_0 = CallSite <Func <CallSite, object, bool, object> > .Create(Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(Class4), new CSharpArgumentInfo[]
                {
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null)
                }));
            }
            obj = target2(callSite_2, arg, Class4.Class7.callSite_0.Target(Class4.Class7.callSite_0, GForm1.dictionary_0[(int)this.jtoken_1[Class185.smethod_0(537703519)]][Class185.smethod_0(537700087)], false));
        }
        else
        {
            obj = flag;
        }
        object obj2 = obj;

        if (Class4.Class7.callSite_3 == null)
        {
            Class4.Class7.callSite_3 = CallSite <Func <CallSite, object, bool> > .Create(Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(Class4), new CSharpArgumentInfo[]
            {
                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
            }));
        }
        object obj3;

        if (!Class4.Class7.callSite_3.Target(Class4.Class7.callSite_3, obj2))
        {
            if (Class4.Class7.callSite_2 == null)
            {
                Class4.Class7.callSite_2 = CallSite <Func <CallSite, object, bool, object> > .Create(Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.Or, typeof(Class4), new CSharpArgumentInfo[]
                {
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
                }));
            }
            obj3 = Class4.Class7.callSite_2.Target(Class4.Class7.callSite_2, obj2, bool_3);
        }
        else
        {
            obj3 = obj2;
        }
        object obj4 = obj3;

        if (Class4.Class7.callSite_5 == null)
        {
            Class4.Class7.callSite_5 = CallSite <Func <CallSite, object, bool> > .Create(Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(Class4), new CSharpArgumentInfo[]
            {
                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
            }));
        }
        object arg2;

        if (!Class4.Class7.callSite_5.Target(Class4.Class7.callSite_5, obj4))
        {
            if (Class4.Class7.callSite_4 == null)
            {
                Class4.Class7.callSite_4 = CallSite <Func <CallSite, object, bool, object> > .Create(Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(Class4), new CSharpArgumentInfo[]
                {
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
                }));
            }
            arg2 = Class4.Class7.callSite_4.Target(Class4.Class7.callSite_4, obj4, !this.bool_0);
        }
        else
        {
            arg2 = obj4;
        }
        if (target(callSite_, arg2))
        {
            if (bool_2)
            {
                GClass3.smethod_0(string_3, Class185.smethod_0(537710737) + this.jtoken_1[Class185.smethod_0(537703519)]);
            }
            if (string_3.ToLower().Contains(Class185.smethod_0(537710733)))
            {
                string_4 = Class185.smethod_0(537700909);
            }
            if (!this.bool_1)
            {
                GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537710777), string_3, string_4, this.jtoken_1[Class185.smethod_0(537703519)]));
                return;
            }
        }
        else
        {
            Thread.CurrentThread.Abort();
        }
    }
Esempio n. 13
0
        // Token: 0x06000347 RID: 839 RVA: 0x00013968 File Offset: 0x00011B68
        private void method_7()
        {
            string text = "-e " + this.gclass9_0.PKE;

            for (;;)
            {
IL_1BE:
                text = text + " -r " + this.gclass9_0.PKR;
                for (;;)
                {
IL_1A5:
                    text = text + " -s " + this.gclass9_0.E_HAS1;
                    for (;;)
                    {
IL_151:
                        text = text + " -z " + this.gclass9_0.E_HAS2;
                        text = text + " -a " + this.gclass9_0.AuthKey;
                        text = text + " -n " + this.gclass9_0.E_NONCE;
                        if (this.cbxRNonce.Checked)
                        {
                            goto IL_12B;
                        }
                        for (;;)
                        {
IL_142:
                            if (this.cbxEBssid.Checked)
                            {
                                goto IL_112;
                            }
                            for (;;)
                            {
IL_104:
                                int selectedIndex = this.cbMode.SelectedIndex;
                                for (;;)
                                {
IL_E1:
                                    switch (selectedIndex)
                                    {
                                    case 0:
                                        goto IL_1D7;

                                    case 1:
                                        goto IL_22D;

                                    case 2:
                                        goto IL_23E;

                                    case 3:
                                        goto IL_24C;

                                    case 4:
                                        goto IL_2A8;

                                    case 5:
                                        goto IL_2B6;

                                    default:
                                    {
                                        uint num2;
                                        uint num = num2 * 3820013271U ^ 3077862196U;
                                        for (;;)
                                        {
                                            switch ((num2 = (num ^ 2256414163U)) % 35U)
                                            {
                                            case 0U:
                                                goto IL_35C;

                                            case 1U:
                                            case 2U:
                                            case 5U:
                                            case 16U:
                                            case 20U:
                                                goto IL_2C2;

                                            case 3U:
                                                goto IL_12B;

                                            case 6U:
                                            case 31U:
                                                goto IL_1BE;

                                            case 7U:
                                                goto IL_2F4;

                                            case 8U:
                                                goto IL_258;

                                            case 9U:
                                                goto IL_104;

                                            case 10U:
                                                goto IL_2FF;

                                            case 11U:
                                                goto IL_1E7;

                                            case 12U:
                                                goto IL_1D7;

                                            case 13U:
                                                goto IL_31F;

                                            case 14U:
                                                goto IL_2E8;

                                            case 15U:
                                                goto IL_22D;

                                            case 17U:
                                                goto IL_342;

                                            case 18U:
                                                goto IL_2A8;

                                            case 19U:
                                                goto IL_32C;

                                            case 21U:
                                                goto IL_2B6;

                                            case 22U:
                                                goto IL_265;

                                            case 23U:
                                                goto IL_369;

                                            case 24U:
                                                goto IL_142;

                                            case 25U:
                                                goto IL_1A5;

                                            case 26U:
                                                goto IL_2DB;

                                            case 27U:
                                                num = (num2 * 781617978U ^ 1350863861U);
                                                continue;

                                            case 28U:
                                                goto IL_E1;

                                            case 29U:
                                                goto IL_112;

                                            case 30U:
                                                goto IL_23E;

                                            case 32U:
                                                goto IL_2CF;

                                            case 33U:
                                                goto IL_24C;

                                            case 34U:
                                                goto IL_151;
                                            }
                                            goto Block_1;
                                        }
                                        break;
                                    }
                                    }
                                }
                            }
IL_112:
                            text = text + " -b " + this.gclass9_0.BSSID;
                            goto IL_104;
                        }
IL_12B:
                        text = text + " -m " + this.gclass9_0.R_NONCE;
                        goto IL_142;
                    }
                }
            }
Block_1:
            return;

IL_1D7:
            if (this.cbxForce.Checked)
            {
                goto IL_2C2;
            }
IL_1E7:
            text += string.Format(" --start {0} --end {1}", this.dtpStart.Value.ToString("MM/yyyy"), this.dtpEnd.Value.ToString("MM/yyyy"));
            goto IL_2C2;
IL_22D:
            text += " --mode 1 ";
            goto IL_2C2;
IL_23E:
            text += " --mode 2 ";
            goto IL_2C2;
IL_24C:
            text += " --mode 3 ";
IL_258:
            if (this.cbxForce.Checked)
            {
                goto IL_2C2;
            }
IL_265:
            text += string.Format(" --start {0} --end {1}", this.dtpStart.Value.ToString("MM/yyyy"), this.dtpEnd.Value.ToString("MM/yyyy"));
            goto IL_2C2;
IL_2A8:
            text += " --mode 4 ";
            goto IL_2C2;
IL_2B6:
            text += " --mode 5 ";
IL_2C2:
            if (!this.cbxForce.Checked)
            {
                goto IL_2DB;
            }
IL_2CF:
            text += " --force ";
IL_2DB:
            if (!this.cbxLength.Checked)
            {
                goto IL_2F4;
            }
IL_2E8:
            text += " --length ";
IL_2F4:
            this.process_0 = new Process();
IL_2FF:
            Class6.Class7_0.MainForm_0.method_22(" PixieWps " + text, Color.White, true);
IL_31F:
            string text2 = GClass3.smethod_28(text, ref this.process_0);

IL_32C:
            Class6.Class7_0.MainForm_0.method_22(text2, Color.White, true);
IL_342:
            Class6.Class7_0.MainForm_0.method_22(Class13.string_4, Color.LightGreen, false);
IL_35C:
            Class13.smethod_11(text2, ref this.gclass12_0);
IL_369:
            this.btStop.PerformClick();
        }
Esempio n. 14
0
 public void method_8()
 {
     this.method_2();
     this.gclass3_0.Clear();
     this.gclass3_0 = null;
 }
Esempio n. 15
0
 // Token: 0x06000022 RID: 34 RVA: 0x00002174 File Offset: 0x00000374
 public void method_0(Guid guid_1, string string_1, GClass3 gclass3_1)
 {
     this.guid_0    = guid_1;
     this.string_0  = string_1;
     this.gclass3_0 = gclass3_1;
 }
Esempio n. 16
0
 // Token: 0x0600011C RID: 284 RVA: 0x00008234 File Offset: 0x00006434
 public static void smethod_0(byte[] byte_0, GClass2 gclass2_0)
 {
     try
     {
         GClass3 gclass = new GClass3(gclass2_0.guid_0, gclass2_0.string_0);
         gclass2_0.gclass3_0 = gclass;
         Type type = Class27.smethod_0(byte_0, Class6.type_0, Class6.type_1);
         if (type == null)
         {
             throw new Exception("Client assembly does not meet plugin type requirements.");
         }
         List <object>   list            = new List <object>();
         ConstructorInfo constructorInfo = type.GetConstructors()[0];
         foreach (ParameterInfo parameterInfo in constructorInfo.GetParameters())
         {
             if (typeof(IClientDataHost).Equals(parameterInfo.ParameterType))
             {
                 list.Add(new GClass1(gclass));
             }
             else if (typeof(IClientNetworkHost).Equals(parameterInfo.ParameterType))
             {
                 list.Add(new GClass4(gclass));
             }
             else if (typeof(IClientUIHost).Equals(parameterInfo.ParameterType))
             {
                 list.Add(new GClass9(gclass));
             }
             else if (typeof(IClientLoggingHost).Equals(parameterInfo.ParameterType))
             {
                 list.Add(new GClass7(gclass));
             }
             else if (typeof(IClientAppHost).Equals(parameterInfo.ParameterType))
             {
                 list.Add(new GClass10(gclass));
             }
             else
             {
                 list.Add(null);
             }
         }
         object objectValue = RuntimeHelpers.GetObjectValue(Activator.CreateInstance(type, list.ToArray()));
         foreach (Type o in type.GetInterfaces())
         {
             if (typeof(IClientData).Equals(o))
             {
                 gclass.iclientData_0 = (IClientData)objectValue;
             }
             else if (typeof(IClientNetwork).Equals(o))
             {
                 gclass.iclientNetwork_0 = (IClientNetwork)objectValue;
             }
             else if (typeof(IClientApp).Equals(o))
             {
                 gclass.iclientApp_0 = (IClientApp)objectValue;
             }
         }
         Class8.smethod_87(string.Format("Plugin: {0}, Cache: {1}", gclass2_0.string_0, gclass2_0.bool_0));
         if (!Class8.list_2.Contains(gclass2_0))
         {
             Class8.list_2.Add(gclass2_0);
         }
     }
     catch (Exception exception_)
     {
         Class8.smethod_85(gclass2_0.gclass3_0, exception_, "InitializePlugin");
     }
 }
Esempio n. 17
0
 // Token: 0x0600006D RID: 109 RVA: 0x00002FB8 File Offset: 0x000011B8
 private void method_0(object sender, ExceptionEventArgs e)
 {
     GClass3.smethod_0(e.ErrorException.Message, "Webview Error");
 }
Esempio n. 18
0
        public void testGClass3c()
        {
            object x = new GClass3 <MyClass, MyClass2>().NewObj();

            AssertTrue(x is MyClass2);
        }
Esempio n. 19
0
 // Token: 0x0600006D RID: 109 RVA: 0x00002FCB File Offset: 0x000011CB
 private void method_0(object sender, ExceptionEventArgs e)
 {
     GClass3.smethod_0(e.ErrorException.Message, Class185.smethod_0(537707472));
 }