예제 #1
0
    internal bool method_3(string A_0)
    {
        Class187 class2 = this.class62_0.method_4().method_0();
        Class190 class3 = this.class62_0.method_4().method_4().method_0();
        bool     flag   = this.method_0();

        byte[]        buffer    = new byte[] { 0xfe, 0xa7, 210, 0x76, 0x3b, 0x4b, 0x9e, 0x79 };
        byte[]        buffer2   = this.class299_0.method_8(A_0, class3.method_16(), buffer, class3.method_6() >> 3, class3.method_0(), flag);
        byte[]        buffer3   = this.method_5(class3.method_18(), class3.method_4(), buffer2, class3.method_16(), class3.method_2());
        byte[]        buffer4   = new byte[] { 0xd7, 170, 15, 0x6d, 0x30, 0x61, 0x34, 0x4e };
        byte[]        buffer5   = this.class299_0.method_8(A_0, class3.method_16(), buffer4, class3.method_6() >> 3, class3.method_0(), flag);
        byte[]        buffer6   = this.method_5(class3.method_20(), class3.method_4(), buffer5, class3.method_16(), class3.method_8());
        HashAlgorithm algorithm = null;

        if (flag)
        {
            algorithm = new SHA512Managed();
        }
        else
        {
            algorithm = new SHA1Managed();
        }
        byte[] buffer7 = algorithm.ComputeHash(buffer3);
        bool   flag2   = this.class299_0.method_15(buffer6, buffer7);

        byte[] buffer8 = new byte[] { 20, 110, 11, 0xe7, 0xab, 0xac, 0xd0, 0xd6 };
        byte[] buffer9 = this.class299_0.method_8(A_0, class3.method_16(), buffer8, class3.method_6() >> 3, class3.method_0(), flag);
        this.byte_0 = this.method_5(class3.method_22(), class3.method_4(), buffer9, class3.method_16(), class2.method_4() / 8);
        return(flag2);
    }
예제 #2
0
 private void method_23(Class190 class190_1, char char_3, int int_4, int int_5)
 {
     if (int_5 > int_4)
     {
         class190_1.method_1(this.char_2, int_4, int_5 - int_4);
     }
     class190_1.method_0(char_3);
 }
예제 #3
0
 public Class184(Class189 class189_1)
 {
     this.class189_0 = class189_1;
     this.class190_0 = new Class190(class189_1);
     this.class200_0 = new Class200();
     this.byte_0     = new byte[65536];
     this.short_0    = new short[32768];
     this.short_1    = new short[32768];
     this.int_10     = 1;
     this.int_9      = 1;
 }
예제 #4
0
파일: Class184.cs 프로젝트: uwx/Open-GHTCP
 public Class184(Class189 class1891)
 {
     _class1890 = class1891;
     _class1900 = new Class190(class1891);
     _class2000 = new Class200();
     _byte0     = new byte[65536];
     _short0    = new short[32768];
     _short1    = new short[32768];
     _int10     = 1;
     _int9      = 1;
 }
예제 #5
0
 private void method_4(Class190 A_0)
 {
     A_0.method_1(0x186a0);
     A_0.method_3(0x10);
     A_0.method_5(0x10);
     A_0.method_7(0x80);
     A_0.method_9(20);
     A_0.method_11(BookmarkStart.b("昦氨砪", 1));
     A_0.method_13(BookmarkStart.b("搦䄨䨪䐬䄮堰崲刴稶嘸强堼簾̀B", 1));
     A_0.method_15(BookmarkStart.b("琦愨横ᰬ", 1));
 }
예제 #6
0
 private Class190 method_14()
 {
     if (this.class190_0 == null)
     {
         this.class190_0 = new Class190(0x401);
     }
     else
     {
         this.class190_0.Int32_0 = 0;
     }
     return(this.class190_0);
 }
예제 #7
0
    private void method_1(Stream A_0, Interface61 A_1, string A_2)
    {
        SHA1 sha = new SHA1Managed();

        using (Stream1 stream = A_1.imethod_2(BookmarkStart.b("欭帯儱䘳伵䠷丹唻儽⸿ୁ⩃⁅❇", 8)))
        {
            Class62 class2 = new Class62();
            class2.method_1(0x40004);
            class2.method_3(0x40);
            Class187 class3 = class2.method_4().method_0();
            this.method_3(class3);
            class3.method_15(this.method_10(class3.method_0()));
            Class190 class4 = class2.method_4().method_4().method_0();
            this.method_4(class4);
            class4.method_17(this.method_10(class4.method_2()));
            byte[] buffer  = this.method_10(class4.method_2());
            byte[] buffer2 = new byte[] { 0xfe, 0xa7, 210, 0x76, 0x3b, 0x4b, 0x9e, 0x79 };
            byte[] buffer3 = this.class299_0.method_9(A_2, class4.method_16(), buffer2, class4.method_6() >> 3, class4.method_0());
            class4.method_19(this.method_11(buffer, class4.method_4(), buffer3, class4.method_16()));
            byte[] buffer4 = new byte[] { 0xd7, 170, 15, 0x6d, 0x30, 0x61, 0x34, 0x4e };
            buffer3 = this.class299_0.method_9(A_2, class4.method_16(), buffer4, class4.method_6() >> 3, class4.method_0());
            class4.method_21(this.method_11(sha.ComputeHash(buffer), class4.method_4(), buffer3, class4.method_16()));
            byte[] buffer5 = this.method_10(class3.method_4() / 8);
            byte[] buffer6 = new byte[] { 20, 110, 11, 0xe7, 0xab, 0xac, 0xd0, 0xd6 };
            buffer3 = this.class299_0.method_9(A_2, class4.method_16(), buffer6, class4.method_6() >> 3, class4.method_0());
            class4.method_23(this.method_11(buffer5, class4.method_4(), buffer3, class4.method_16()));
            Class188 class5  = class2.method_4().method_2();
            byte[]   buffer7 = new byte[] { 0x5f, 0xb2, 0xad, 1, 12, 0xb9, 0xe1, 0xf6 };
            byte[]   buffer8 = sha.ComputeHash(this.class299_0.method_12(class3.method_14(), buffer7));
            buffer8 = this.class299_0.method_13(buffer8, class3.method_2(), 0);
            byte[] buffer9 = this.method_10(class3.method_6());
            class5.method_1(this.method_11(buffer9, class3.method_2(), buffer5, buffer8));
            byte[]   buffer10 = this.method_2(A_0, A_1, class3, buffer5);
            HMACSHA1 hmacsha  = new HMACSHA1 {
                Key = this.class299_0.method_13(buffer9, class3.method_6(), 0)
            };
            byte[] buffer11 = new byte[] { 160, 0x67, 0x7f, 2, 0xb2, 0x2c, 0x84, 0x33 };
            byte[] buffer12 = sha.ComputeHash(this.class299_0.method_12(class3.method_14(), buffer11));
            buffer12 = this.class299_0.method_13(buffer12, class3.method_2(), 0);
            class5.method_3(this.method_11(hmacsha.ComputeHash(buffer10), class3.method_2(), buffer5, buffer12));
            class2.method_5(stream);
        }
    }
예제 #8
0
        private void method_22(char char_3)
        {
            int      num4;
            char     ch;
            char     ch2;
            char     ch4;
            int      index      = this.int_1;
            int      startIndex = this.int_1;
            int      num3       = this.int_1;
            Class190 class2     = null;

            goto Label_0299;
Label_009B:
            ch2 = ch;
            index++;
Label_0211:
            if (class2 == null)
            {
                class2 = this.method_14();
            }
            this.method_23(class2, ch2, num3, num4);
            num3 = index;
Label_0299:
            ch4 = this.char_2[index++];
            if (ch4 > '\r')
            {
                switch (ch4)
                {
                case '"':
                case '\'':
                    if (this.char_2[index - 1] != char_3)
                    {
                        goto Label_0299;
                    }
                    index--;
                    if (startIndex == num3)
                    {
                        this.struct29_0 = new Struct29(this.char_2, startIndex, index - startIndex);
                    }
                    else
                    {
                        if (class2 == null)
                        {
                            class2 = this.method_14();
                        }
                        if (index > num3)
                        {
                            class2.method_1(this.char_2, num3, index - num3);
                        }
                        this.struct29_0 = new Struct29(class2.method_5(), 0, class2.Int32_0);
                    }
                    index++;
                    this.int_1 = index;
                    return;
                }
                if (ch4 != '\\')
                {
                    goto Label_0299;
                }
                this.int_1 = index;
                if (!this.method_20(0, true))
                {
                    this.int_1 = index;
                    throw JsonReaderException.smethod_1(this, "Unterminated string. Expected delimiter: {0}.".smethod_0(CultureInfo.InvariantCulture, char_3));
                }
                num4 = index - 1;
                ch   = this.char_2[index];
                char ch5 = ch;
                if (ch5 > '\\')
                {
                    if (ch5 <= 'f')
                    {
                        if (ch5 != 'b')
                        {
                            if (ch5 != 'f')
                            {
                                goto Label_02F8;
                            }
                            index++;
                            ch2 = '\f';
                        }
                        else
                        {
                            index++;
                            ch2 = '\b';
                        }
                        goto Label_0211;
                    }
                    switch (ch5)
                    {
                    case 'r':
                        index++;
                        ch2 = '\r';
                        goto Label_0211;

                    case 't':
                        index++;
                        ch2 = '\t';
                        goto Label_0211;

                    case 'u':
                        index++;
                        this.int_1 = index;
                        ch2        = this.method_24();
                        if (!Class198.smethod_12(ch2))
                        {
                            if (Class198.smethod_11(ch2))
                            {
                                bool flag;
                                do
                                {
                                    flag = false;
                                    if (!this.method_20(2, true) || ((this.char_2[this.int_1] != '\\') || (this.char_2[this.int_1 + 1] != 'u')))
                                    {
                                        ch2 = 0xfffd;
                                    }
                                    else
                                    {
                                        char ch3 = ch2;
                                        this.int_1 += 2;
                                        ch2         = this.method_24();
                                        if (!Class198.smethod_12(ch2))
                                        {
                                            if (Class198.smethod_11(ch2))
                                            {
                                                ch3  = 0xfffd;
                                                flag = true;
                                            }
                                            else
                                            {
                                                ch3 = 0xfffd;
                                            }
                                        }
                                        if (class2 == null)
                                        {
                                            class2 = this.method_14();
                                        }
                                        this.method_23(class2, ch3, num3, num4);
                                        num3 = this.int_1;
                                    }
                                }while (flag);
                            }
                        }
                        else
                        {
                            ch2 = 0xfffd;
                        }
                        index = this.int_1;
                        goto Label_0211;

                    case 'n':
                        index++;
                        ch2 = '\n';
                        goto Label_0211;
                    }
                    goto Label_02F8;
                }
                if (ch5 <= '\'')
                {
                    switch (ch5)
                    {
                    case '"':
                    case '\'':
                        goto Label_009B;
                    }
                    goto Label_02F8;
                }
                if (ch5 != '/')
                {
                    if (ch5 != '\\')
                    {
                        goto Label_02F8;
                    }
                    index++;
                    ch2 = '\\';
                    goto Label_0211;
                }
                goto Label_009B;
            }
            switch (ch4)
            {
            case '\0':
                if (this.int_0 == (index - 1))
                {
                    index--;
                    if (this.method_18(true) == 0)
                    {
                        this.int_1 = index;
                        throw JsonReaderException.smethod_1(this, "Unterminated string. Expected delimiter: {0}.".smethod_0(CultureInfo.InvariantCulture, char_3));
                    }
                }
                break;

            case '\n':
                this.int_1 = index - 1;
                this.method_33();
                index = this.int_1;
                break;

            case '\r':
                this.int_1 = index - 1;
                this.method_34(true);
                index = this.int_1;
                break;
            }
            goto Label_0299;
Label_02F8:
            index++;
            this.int_1 = index;
            throw JsonReaderException.smethod_1(this, "Bad JSON escape sequence: {0}.".smethod_0(CultureInfo.InvariantCulture, @"\" + ch));
        }
 public abstract void Visit(Class190 c);
 public override void Visit(Class190 c) { }